Commit 3b3d0528 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

auth screen complete base

parent afcad2fb
......@@ -62,9 +62,8 @@
android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
style="@style/AuthTextInputLayout.Password"
<FrameLayout
android:id="@+id/password_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
......@@ -72,22 +71,55 @@
android:layout_marginEnd="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/login_text_input">
app:layout_constraintTop_toBottomOf="@+id/login_text_input"
>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/password_text_input"
style="@style/AuthTextInputLayout.Password"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|top"
android:orientation="vertical">
<com.google.android.material.button.MaterialButton
style="@style/AuthButton.Restore"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:textAlignment="viewEnd" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</FrameLayout>
<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
style="@style/AuthButton.Enable"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:includeFontPadding="false"
android:paddingTop="0dp"
android:paddingBottom="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/login_text_input">
app:layout_constraintTop_toBottomOf="@+id/password_container" />
</com.google.android.material.button.MaterialButton>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -43,12 +43,13 @@
<item name="colorControlActivated">@color/colorAccentSecondary</item>
</style>
<style name="AuthTextInputLayout" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense">
<style name="AuthTextInputLayout" parent="Widget.MaterialComponents.TextInputLayout.FilledBox.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:labelTextSize">@dimen/minor_text</item>
<item name="android:textColorHint">@color/colorNoticeText</item>
<item name="android:textColor">@color/colorCommonText</item>
<item name="errorTextAppearance">@style/Auth.EditText</item>
......@@ -64,6 +65,34 @@
</style>
<style name="AuthButton" parent="Widget.MaterialComponents.Button.OutlinedButton">
<item name="strokeColor">@color/colorAccent</item>
<item name="strokeWidth">4dp</item>
<item name="android:height">64dp</item>
<item name="cornerRadius">0dp</item>
<item name="rippleColor">@color/colorAccentSecondary</item>
<item name="boxBackgroundColor">@color/colorCommonBackground</item>
<item name="android:textSize">@dimen/common_text</item>
<item name="android:textColor">@color/colorAccent</item>
<item name="errorTextAppearance">@style/Auth.EditText</item>
<item name="hintTextColor">@color/colorNoticeText</item>
</style>
<style name="AuthButton.Enable">
<item name="android:text">"ВОЙТИ"</item>
</style>
<style name="AuthButton.Restore">
<item name="android:text">"Я ЗАБЫЛ"</item>
<item name="android:textSize">@dimen/minor_text</item>
<item name="android:fontFamily">@font/acrom_regular</item>
<item name="strokeWidth">0dp</item>
</style>
//region TextView
<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