f8b00e320f
Using dagger for Retrofit2, OkHttp and Gson
149 lines
6.9 KiB
XML
149 lines
6.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout 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">
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:id="@+id/loginRoot"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:animateLayoutChanges="true"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:padding="16dp">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/logoContainer"
|
|
android:layout_width="140dp"
|
|
android:layout_height="140dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:background="@drawable/ic_logo_fast_border">
|
|
|
|
<com.meloda.fast.widget.CircleImageView
|
|
android:id="@+id/logoImage"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:padding="42dp"
|
|
android:src="@drawable/ic_fast_lightning"
|
|
app:tint="?colorAccent" />
|
|
</FrameLayout>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="48dp"
|
|
android:visibility="gone"
|
|
tools:visibility="visible" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/loginContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="48dp"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/loginImage"
|
|
style="@style/AppTheme.Login.EditText.Icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:src="@drawable/ic_baseline_account_circle_24"
|
|
app:tint="?colorAccent" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/loginLayout"
|
|
style="@style/Widget.TextInputLayout.NoError.Dense"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:boxStrokeErrorColor="@android:color/transparent">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/loginInput"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:hint="@string/login_hint"
|
|
android:imeOptions="actionGo"
|
|
android:inputType="textEmailAddress" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/passwordContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/activity_vertical_margin"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/passwordImage"
|
|
style="@style/AppTheme.Login.EditText.Icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:src="@drawable/ic_key"
|
|
app:tint="?colorAccent" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/passwordLayout"
|
|
style="@style/Widget.TextInputLayout.NoError.Dense"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:boxStrokeErrorColor="@android:color/transparent"
|
|
app:passwordToggleEnabled="true"
|
|
app:passwordToggleTint="?colorAccent">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/passwordInput"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:fontFamily="@font/roboto_regular"
|
|
android:hint="@string/password_login_hint"
|
|
android:imeOptions="actionGo"
|
|
android:typeface="normal" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/auth"
|
|
style="@style/Widget.MaterialButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="60dp"
|
|
android:layout_gravity="center_horizontal|bottom"
|
|
android:layout_marginTop="12dp"
|
|
android:fontFamily="@font/google_sans_medium"
|
|
android:letterSpacing="0"
|
|
android:paddingStart="24dp"
|
|
android:paddingEnd="16dp"
|
|
android:text="@string/log_in"
|
|
android:textColor="?colorActionContentPrimary"
|
|
android:textSize="14sp"
|
|
app:backgroundTint="?colorAction"
|
|
app:cornerRadius="50dp"
|
|
app:elevation="16dp"
|
|
app:icon="@drawable/ic_arrow_end"
|
|
app:iconGravity="end"
|
|
app:iconTint="?colorActionContentPrimary"
|
|
app:rippleColor="?colorActionRipple" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
</layout> |