Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav Bogdashkin
Room Park Android
Commits
3b3d0528
Commit
3b3d0528
authored
Sep 11, 2019
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auth screen complete base
parent
afcad2fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
8 deletions
+69
-8
authentication_screen.xml
app/src/main/res/layout/authentication_screen.xml
+39
-7
styles.xml
app/src/main/res/values/styles.xml
+30
-1
No files found.
app/src/main/res/layout/authentication_screen.xml
View file @
3b3d0528
...
...
@@ -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
app/src/main/res/values/styles.xml
View file @
3b3d0528
...
...
@@ -43,12 +43,13 @@
<item
name=
"colorControlActivated"
>
@color/colorAccentSecondary
</item>
</style>
<style
name=
"AuthTextInputLayout"
parent=
"Widget.MaterialComponents.TextInputLayout.
Outlin
edBox.Dense"
>
<style
name=
"AuthTextInputLayout"
parent=
"Widget.MaterialComponents.TextInputLayout.
Fill
edBox.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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment