Header админа верстка
This commit is contained in:
parent
cc6b6b4c1a
commit
0446bddcc9
7
app/src/main/res/drawable/admin_header_corner_radius.xml
Normal file
7
app/src/main/res/drawable/admin_header_corner_radius.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners
|
||||
android:bottomLeftRadius="16dp"
|
||||
android:bottomRightRadius="16dp"/>
|
||||
<solid android:color="@color/theme_color"/>
|
||||
</shape>
|
9
app/src/main/res/drawable/logo_search.xml
Normal file
9
app/src/main/res/drawable/logo_search.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="60dp"
|
||||
android:height="60dp"
|
||||
android:viewportWidth="60"
|
||||
android:viewportHeight="60">
|
||||
<path
|
||||
android:pathData="M27.333,17.667C32.672,17.667 37,21.994 37,27.333C37,29.642 36.19,31.763 34.839,33.425L41.374,39.96C41.764,40.35 41.764,40.983 41.374,41.374C41.019,41.729 40.463,41.761 40.072,41.471L39.96,41.374L33.425,34.839C31.763,36.19 29.642,37 27.333,37C21.994,37 17.667,32.672 17.667,27.333C17.667,21.994 21.994,17.667 27.333,17.667ZM27.333,19.667C23.099,19.667 19.667,23.099 19.667,27.333C19.667,31.567 23.099,35 27.333,35C31.567,35 35,31.567 35,27.333C35,23.099 31.567,19.667 27.333,19.667Z"
|
||||
android:fillColor="#777777"/>
|
||||
</vector>
|
@ -5,29 +5,60 @@
|
||||
android:id="@+id/main"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/bg_color"
|
||||
tools:context=".admin">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/search"
|
||||
style="@style/login_input"
|
||||
android:layout_width="279dp"
|
||||
android:layout_height="42dp"
|
||||
android:autofillHints=""
|
||||
android:background="@drawable/input_corner_radius"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/search_btn"
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline_left"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:contentDescription="@string/scan_btn"
|
||||
android:src="@drawable/avatar_alt"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/search" />
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintGuide_begin="16dp"/>
|
||||
<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="16dp"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/block_header"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/admin_header_corner_radius"
|
||||
android:padding="36dp"
|
||||
app:layout_constrainedWidth="true"
|
||||
app:layout_constrainedHeight="true"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/search"
|
||||
style="@style/login_input"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_weight="1"
|
||||
android:autofillHints=""
|
||||
android:background="@drawable/input_corner_radius"
|
||||
android:inputType="text"
|
||||
android:textSize="12sp"
|
||||
android:singleLine="true"
|
||||
android:hint="@string/search_hint" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/search_btn"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:contentDescription="@string/scan_btn"
|
||||
android:src="@drawable/logo_search"
|
||||
android:background="@android:color/transparent" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
@ -50,6 +50,7 @@ tools:context="ru.myitschool.work.ui.login.LoginFragment">
|
||||
android:layout_marginTop="20dp"
|
||||
android:autofillHints="username"
|
||||
android:background="@drawable/input_corner_radius"
|
||||
android:textSize="16sp"
|
||||
android:hint="@string/username_hint"
|
||||
android:inputType="text" />
|
||||
|
||||
@ -61,6 +62,7 @@ tools:context="ru.myitschool.work.ui.login.LoginFragment">
|
||||
android:layout_marginTop="20dp"
|
||||
android:autofillHints="password"
|
||||
android:background="@drawable/input_corner_radius"
|
||||
android:textSize="16sp"
|
||||
android:hint="@string/password_hint"
|
||||
android:inputType="textPassword" />
|
||||
|
||||
@ -73,6 +75,7 @@ tools:context="ru.myitschool.work.ui.login.LoginFragment">
|
||||
android:layout_marginEnd="10sp"
|
||||
android:backgroundTint="@color/bg_color"
|
||||
android:enabled="false"
|
||||
android:textAllCaps="false"
|
||||
android:fontFamily="@font/montserrat_medium"
|
||||
android:text="@string/login_btn"
|
||||
android:textColor="@color/secondary_text_color"
|
||||
|
@ -17,4 +17,5 @@
|
||||
<string name="password_hint">Enter the password</string>
|
||||
<string name="history_title">Visit history</string>
|
||||
<string name="login_unauthorized">Incorrect login or password</string>
|
||||
<string name="search_hint">Enter the employee\'s username</string>
|
||||
</resources>
|
@ -19,6 +19,7 @@
|
||||
<string name="password_hint">Введите пароль</string>
|
||||
<string name="history_title">История посещений</string>
|
||||
<string name="login_unauthorized">Неправильное имя пользователя или пароль</string>
|
||||
<string name="search_hint">Введите логин сотрудника</string>
|
||||
<!-- TODO: Remove or change this placeholder text -->
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user