Верстка стартера + фиксы
This commit is contained in:
parent
44ff91387f
commit
379117cc0c
1113
app/src/main/res/drawable/anchor_image.xml
Normal file
1113
app/src/main/res/drawable/anchor_image.xml
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,11 @@
|
||||
<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/main"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="ru.myitschool.work.ui.login.LoginFragment">
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/main"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/theme_color"
|
||||
tools:context="ru.myitschool.work.ui.login.LoginFragment">
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline_left"
|
||||
@ -25,7 +26,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="104dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="104dp"
|
||||
android:layout_marginTop="80dp"
|
||||
android:src="@drawable/logo_login"
|
||||
android:importantForAccessibility="no"
|
||||
app:layout_constraintBottom_toTopOf="@+id/linearLayout"
|
||||
@ -43,7 +44,8 @@
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="@id/guideline_left"
|
||||
app:layout_constraintRight_toRightOf="@id/guideline_right">
|
||||
app:layout_constraintRight_toRightOf="@id/guideline_right"
|
||||
app:layout_constraintVertical_bias="0.4">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/login_title"
|
||||
|
86
app/src/main/res/layout/fragment_starter.xml
Normal file
86
app/src/main/res/layout/fragment_starter.xml
Normal file
@ -0,0 +1,86 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/theme_color">
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline_left"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintGuide_begin="36dp"/>
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline_right"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintGuide_end="36dp"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/anchor_img"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/anchor_image"
|
||||
app:layout_constrainedHeight="true"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/content"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constrainedWidth="true"
|
||||
app:layout_constrainedHeight="true"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="@id/guideline_left"
|
||||
app:layout_constraintRight_toRightOf="@id/guideline_right"
|
||||
app:layout_constraintVertical_bias="0.8">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/montserrat_bold"
|
||||
android:textColor="@color/primary_text_color"
|
||||
android:textSize="24sp"
|
||||
android:text="@string/starter_tiser" />
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/montserrat_bold"
|
||||
android:textColor="@color/accent_color"
|
||||
android:textSize="24sp"
|
||||
android:text="@string/starter_tiser_accent" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:fontFamily="@font/montserrat_bold"
|
||||
android:textColor="@color/primary_text_color"
|
||||
android:textSize="14sp"
|
||||
android:text="@string/description" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/loginBtn"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:layout_marginTop="48dp"
|
||||
android:backgroundTint="@color/accent_color"
|
||||
android:enabled="false"
|
||||
android:textAllCaps="false"
|
||||
android:fontFamily="@font/montserrat_medium"
|
||||
android:text="@string/login_btn"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="20sp"
|
||||
app:cornerRadius="16dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -20,6 +20,9 @@
|
||||
<string name="search_hint">Enter the employee\'s username</string>
|
||||
<string name="block_btn">Block</string>
|
||||
<string name="unblock_btn">Unblock</string>
|
||||
<string name="starter_tiser">Welcome to</string>
|
||||
<string name="starter_tiser_accent">S company Pass</string>
|
||||
<string name="description">View visits and an electronic pass in one application</string>
|
||||
<string name="admin_unauthorized">Вы не авторизованы</string>
|
||||
<string name="admin_forbidden">Нет доступа</string>
|
||||
<string name="not_found">404\nEmployee not found</string>
|
||||
|
@ -22,10 +22,12 @@
|
||||
<string name="search_hint">Введите логин сотрудника</string>
|
||||
<string name="block_btn">Заблокировать</string>
|
||||
<string name="unblock_btn">Разблокировать</string>
|
||||
<string name="admin_unauthorized">Вы не авторизованы</string>
|
||||
<string name="admin_unauthorized">Добро пожаловать в</string>
|
||||
<string name="admin_forbidden">Нет доступа</string>
|
||||
<string name="not_found">404\nСотрудник не найден</string>
|
||||
<!-- TODO: Remove or change this placeholder text -->
|
||||
<string name="starter_tiser">Добро пожаловать в</string>
|
||||
<string name="starter_tiser_accent">S company Pass</string>
|
||||
<string name="description">Просмотр посещений и электронный пропуск в одном приложении</string>
|
||||
|
||||
|
||||
</resources>
|
Loading…
x
Reference in New Issue
Block a user