styles.xml
This commit is contained in:
parent
c3c88798a9
commit
3b534bafc1
5
app/src/main/res/drawable/input_corner_radius.xml
Normal file
5
app/src/main/res/drawable/input_corner_radius.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="16dp"/>
|
||||
<solid android:color="@color/input_color"/>
|
||||
</shape>
|
@ -20,53 +20,50 @@ tools:context="ru.myitschool.work.ui.login.LoginFragment">
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView4"
|
||||
android:id="@+id/login_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/montserrat_bold"
|
||||
android:text="@string/login_title"
|
||||
android:textAlignment="center"
|
||||
android:textSize="20sp" />
|
||||
android:textSize="24sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/username"
|
||||
style="@style/login_input"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="61dp"
|
||||
android:layout_marginTop="20sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@drawable/input_corner_radius"
|
||||
android:autofillHints="username"
|
||||
android:ems="10"
|
||||
android:fontFamily="@font/montserrat_medium"
|
||||
android:hint="@string/username_hint"
|
||||
android:inputType="text"
|
||||
android:textAlignment="textStart"
|
||||
android:textColorLink="#000000" />
|
||||
android:inputType="text" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/password"
|
||||
style="@style/login_input"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="61dp"
|
||||
android:layout_marginTop="20sp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@drawable/input_corner_radius"
|
||||
android:autofillHints="password"
|
||||
android:ems="10"
|
||||
android:fontFamily="@font/montserrat_medium"
|
||||
android:hint="@string/password_hint"
|
||||
android:inputType="textPassword"
|
||||
android:textAlignment="textStart"
|
||||
android:textColorLink="#000000" />
|
||||
android:inputType="textPassword" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/loginBtn"
|
||||
style="@style/secondary_text_color"
|
||||
android:layout_width="312dp"
|
||||
android:layout_height="68dp"
|
||||
android:layout_marginStart="10sp"
|
||||
android:layout_marginEnd="10sp"
|
||||
android:backgroundTint="@color/enable_btn"
|
||||
android:backgroundTint="@color/bg_color"
|
||||
app:cornerRadius="16dp"
|
||||
android:enabled="false"
|
||||
android:fontFamily="@font/montserrat_bold"
|
||||
android:fontFamily="@font/montserrat_medium"
|
||||
android:text="@string/login_btn"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp"
|
||||
app:cornerRadius="10sp" />
|
||||
android:textColor="@color/secondary_text_color"
|
||||
android:textSize="20sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/error"
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">NTO Pass</string>
|
||||
<string name="login_title">Login</string>
|
||||
<string name="login_title">Log in to your account</string>
|
||||
<string name="username_hint">Enter your username</string>
|
||||
<string name="login_btn">Login</string>
|
||||
<string name="login_error">Login Error</string>
|
||||
@ -13,7 +13,6 @@
|
||||
<string name="result_success_text">Success</string>
|
||||
<string name="result_fail_text">Something wrong</string>
|
||||
<string name="close_btn">Close</string>
|
||||
<string name="close_button">Close</string>
|
||||
<string name="result_null_text">Operation was cancelled</string>
|
||||
<string name="password_hint">Enter your password</string>
|
||||
<string name="password_hint">Enter the password</string>
|
||||
</resources>
|
@ -11,4 +11,12 @@
|
||||
<color name="enable_btn">#E78A07</color>
|
||||
<color name="disable_btn">#C3C3C3</color>
|
||||
<color name="gray">#E78A07</color>
|
||||
|
||||
|
||||
<color name="theme_color">#FFFFFF</color>
|
||||
<color name="primary_text_color">#000000</color>
|
||||
<color name="secondary_text_color">#777777</color>
|
||||
<color name="accent_color">#004BFF</color>
|
||||
<color name="bg_color">#F2F1F7</color>
|
||||
<color name="input_color">#E5E2F5</color>
|
||||
</resources>
|
@ -1,8 +1,9 @@
|
||||
<resources>
|
||||
<string name="app_name">NTO Pass</string>
|
||||
<string name="login_title">Логин</string>
|
||||
<string name="username_hint">Введите ваше имя пользователя</string>
|
||||
<string name="login_btn">Логин</string>
|
||||
|
||||
<string name="login_title">Войти в аккаунт</string>
|
||||
<string name="username_hint">Введите логин</string>
|
||||
<string name="login_btn">Войти</string>
|
||||
<string name="login_error">Ошибка логина</string>
|
||||
|
||||
<string name="main_title">Главная страница</string>
|
||||
|
@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="close_button">Close</string>
|
||||
</resources>
|
17
app/src/main/res/values/styles.xml
Normal file
17
app/src/main/res/values/styles.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="secondary_text_color">
|
||||
<item name="android:textColor">@color/secondary_text_color</item>
|
||||
</style>
|
||||
|
||||
<style name="login_input">
|
||||
<item name="android:paddingStart">16dp</item>
|
||||
<item name="android:textAlignment">textStart</item>
|
||||
<item name="android:ems">10</item>
|
||||
<item name="android:fontFamily">@font/montserrat_medium</item>
|
||||
<item name="android:textColorHint">@color/secondary_text_color</item>
|
||||
<item name="android:textColorLink">@color/accent_color</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
Loading…
x
Reference in New Issue
Block a user