Commit afcad2fb authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

text input layout

parent 32615641
...@@ -63,7 +63,13 @@ ...@@ -63,7 +63,13 @@
android:id="@+id/conductor_container" android:id="@+id/conductor_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" /> app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" >
<include layout="@layout/authentication_screen"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</FrameLayout>
<!-- <com.bluelinelabs.conductor.ChangeHandlerFrameLayout--> <!-- <com.bluelinelabs.conductor.ChangeHandlerFrameLayout-->
<!-- android:id="@+id/conductor_container"--> <!-- android:id="@+id/conductor_container"-->
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/textView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:text="@string/enter"
android:textAlignment="textStart"
android:textAppearance="@style/Header_TextView.Main_Header"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:text="@string/into"
android:textAlignment="textStart"
android:textAppearance="@style/Header_TextView.Main_Header"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView" />
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginEnd="16dp"
android:text="@string/private_office"
android:textAlignment="textStart"
android:textAppearance="@style/Header_TextView.Accent_Header"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/textView2"
app:layout_constraintTop_toBottomOf="@+id/textView" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/login_text_input"
style="@style/AuthTextInputLayout.Login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView3">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
style="@style/AuthTextInputLayout.Password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/login_text_input">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/login_text_input">
</com.google.android.material.button.MaterialButton>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
</LinearLayout>
\ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
//region background //region background
<color name="colorCommonBackground">#A1A1A1</color> <color name="colorCommonBackground">#FFFFFF</color>
<color name="colorNoticeBackground">#EEEEEE</color> <color name="colorNoticeBackground">#EEEEEE</color>
<color name="colorOpacityBackground">#CC000000</color> <color name="colorOpacityBackground">#CC000000</color>
<color name="colorCheckListGradientStart">@color/colorAccent</color> <color name="colorCheckListGradientStart">@color/colorAccent</color>
......
...@@ -9,4 +9,7 @@ ...@@ -9,4 +9,7 @@
<string name="snackbar_dismiss_button_error">ОШИБКА</string> <string name="snackbar_dismiss_button_error">ОШИБКА</string>
<string name="snackbar_dismiss_button_attention">ВНИМАНИЕ</string> <string name="snackbar_dismiss_button_attention">ВНИМАНИЕ</string>
<string name="snackbar_dismiss_button_ok">ОК</string> <string name="snackbar_dismiss_button_ok">ОК</string>
<string name="enter">ВХОД</string>
<string name="into">В</string>
<string name="private_office">ЛИЧНЫЙ КАБИНЕТ</string>
</resources> </resources>
...@@ -31,6 +31,39 @@ ...@@ -31,6 +31,39 @@
<item name="cornerSize">4dp</item> <item name="cornerSize">4dp</item>
</style> </style>
<style name="Auth.ErrorText" parent="TextAppearance.Design.Error">
<item name="android:textColor">@color/colorError</item>
</style>
<style name="Auth.EditText" parent="Widget.AppCompat.EditText">
<!-- Inactive underline color-->
<item name="colorControlNormal">@color/colorAccent</item>
<!-- Cursor and Active underline color, uses colorAccent by default if not defined-->
<item name="colorControlActivated">@color/colorAccentSecondary</item>
</style>
<style name="AuthTextInputLayout" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense">
<item name="colorControlNormal">@color/colorCommonBackground</item>
<item name="colorControlActivated">@color/colorCommonBackground</item>
<item name="boxStrokeColor">@color/colorAccent</item>
<item name="boxBackgroundColor">@color/colorCommonBackground</item>
<item name="android:textSize">@dimen/common_text</item>
<item name="android:textColorHint">@color/colorNoticeText</item>
<item name="android:textColor">@color/colorCommonText</item>
<item name="errorTextAppearance">@style/Auth.EditText</item>
<item name="hintTextColor">@color/colorNoticeText</item>
</style>
<style name="AuthTextInputLayout.Login">
<item name="android:hint">"EMAIL"</item>
</style>
<style name="AuthTextInputLayout.Password">
<item name="android:hint">"ПАРОЛЬ"</item>
</style>
//region TextView //region TextView
<style name="Base.Widget.AppCompat.TextView.AcromMediumTextView"> <style name="Base.Widget.AppCompat.TextView.AcromMediumTextView">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment