Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
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
afcad2fb
Commit
afcad2fb
authored
Sep 11, 2019
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
text input layout
parent
32615641
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
143 additions
and
2 deletions
+143
-2
activity_main.xml
app/src/main/res/layout/activity_main.xml
+7
-1
authentication_screen.xml
app/src/main/res/layout/authentication_screen.xml
+93
-0
splash_screen.xml
app/src/main/res/layout/splash_screen.xml
+6
-0
colors.xml
app/src/main/res/values/colors.xml
+1
-1
strings.xml
app/src/main/res/values/strings.xml
+3
-0
styles.xml
app/src/main/res/values/styles.xml
+33
-0
No files found.
app/src/main/res/layout/activity_main.xml
View file @
afcad2fb
...
...
@@ -63,7 +63,13 @@
android:id=
"@+id/conductor_container"
android:layout_width=
"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-->
<!-- android:id="@+id/conductor_container"-->
...
...
app/src/main/res/layout/authentication_screen.xml
0 → 100644
View file @
afcad2fb
<?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
app/src/main/res/layout/splash_screen.xml
0 → 100644
View file @
afcad2fb
<?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
app/src/main/res/values/colors.xml
View file @
afcad2fb
...
...
@@ -10,7 +10,7 @@
//region background
<color
name=
"colorCommonBackground"
>
#
A1A1A1
</color>
<color
name=
"colorCommonBackground"
>
#
FFFFFF
</color>
<color
name=
"colorNoticeBackground"
>
#EEEEEE
</color>
<color
name=
"colorOpacityBackground"
>
#CC000000
</color>
<color
name=
"colorCheckListGradientStart"
>
@color/colorAccent
</color>
...
...
app/src/main/res/values/strings.xml
View file @
afcad2fb
...
...
@@ -9,4 +9,7 @@
<string
name=
"snackbar_dismiss_button_error"
>
ОШИБКА
</string>
<string
name=
"snackbar_dismiss_button_attention"
>
ВНИМАНИЕ
</string>
<string
name=
"snackbar_dismiss_button_ok"
>
ОК
</string>
<string
name=
"enter"
>
ВХОД
</string>
<string
name=
"into"
>
В
</string>
<string
name=
"private_office"
>
ЛИЧНЫЙ КАБИНЕТ
</string>
</resources>
app/src/main/res/values/styles.xml
View file @
afcad2fb
...
...
@@ -31,6 +31,39 @@
<item
name=
"cornerSize"
>
4dp
</item>
</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
<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