login

mail@pastecode.io avatar
unknown
xml
2 years ago
9.1 kB
1
Indexable
Never
<?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.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/ctPrimary">

        <ImageView
            android:id="@+id/loginLogo"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/image_sign_in"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />


        <androidx.cardview.widget.CardView
            android:id="@+id/backCardView"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_marginBottom="-20dp"
            app:cardCornerRadius="20dp"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/loginLogo">


            <androidx.constraintlayout.widget.ConstraintLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent">

                <com.google.android.material.textfield.TextInputLayout
                    android:id="@+id/signInEmailLayout"
                    style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginStart="20dp"
                    android:layout_marginTop="40dp"
                    android:layout_marginEnd="20dp"
                    android:layout_marginBottom="5dp"
                    android:backgroundTint="@color/bottomNavItemBackgroundFalse"
                    android:textColorHint="@color/bottomNavItemBackgroundFalse"
                    app:boxStrokeColor="@color/ctGray3"
                    app:hintTextColor="@color/bottomNavItemBackgroundFalse"
                    app:layout_constraintBottom_toTopOf="@id/signInPasswordLayout"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    app:layout_constraintTop_toTopOf="parent">

                    <EditText
                        android:id="@+id/signInEmail"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:backgroundTint="@color/colorGmg"
                        android:fontFamily="@font/roboto_regular"
                        android:hint="@string/loginUserOrEmail"
                        android:inputType="textEmailAddress"
                        android:textColor="@color/black"
                        android:textColorHint="@color/colorGmg" />

                </com.google.android.material.textfield.TextInputLayout>


                <com.google.android.material.textfield.TextInputLayout
                    android:id="@+id/signInPasswordLayout"
                    style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="20dp"
                    android:layout_marginEnd="20dp"
                    android:layout_marginBottom="15dp"
                    android:backgroundTint="@color/bottomNavItemBackgroundFalse"
                    android:textColorHint="@color/bottomNavItemBackgroundFalse"
                    app:boxStrokeColor="@color/ctGray3"
                    app:cardCornerRadius="7dp"
                    app:hintTextColor="@color/bottomNavItemBackgroundFalse"
                    app:layout_constraintBottom_toTopOf="@id/loginButton"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    app:passwordToggleEnabled="true"
                    app:passwordToggleTint="@color/black">

                    <EditText
                        android:id="@+id/signInPassword"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:backgroundTint="@color/colorGmg"
                        android:fontFamily="@font/roboto_regular"
                        android:hint="@string/loginPassword"
                        android:inputType="textPassword"
                        android:textColor="@color/black"
                        android:textColorHint="@color/colorGmg" />

                </com.google.android.material.textfield.TextInputLayout>


                <Button
                    android:id="@+id/loginButton"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="20dp"
                    android:layout_marginTop="14dp"
                    android:layout_marginEnd="20dp"
                    android:background="@drawable/background_login_button"
                    android:fontFamily="@font/roboto_regular"
                    android:text="@string/loginButton"
                    android:textColor="@color/white"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                    app:layout_constraintTop_toBottomOf="@id/signInPasswordLayout" />


                <CheckBox
                    android:id="@+id/rememberCheckbox"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:buttonTint="@color/ctGray3"
                    app:layout_constraintBottom_toBottomOf="@id/rememberTextView"
                    app:layout_constraintStart_toStartOf="@id/signInPasswordLayout"
                    app:layout_constraintTop_toTopOf="@id/rememberTextView" />

                <TextView
                    android:id="@+id/rememberTextView"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="14dp"
                    android:fontFamily="@font/roboto_regular"
                    android:text="Remember Me"
                    android:textColor="@color/ctGray4"
                    android:textSize="15sp"
                    app:layout_constraintStart_toEndOf="@id/rememberCheckbox"
                    app:layout_constraintTop_toBottomOf="@id/loginButton" />

                <ProgressBar
                    android:id="@+id/signInProgressBar"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:visibility="gone"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent"
                   app:layout_constraintTop_toBottomOf="@id/rememberTextView" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="14dp"
                    android:fontFamily="@font/roboto_regular"
                    android:text="version 2.0"
                    android:textColor="@color/ctGray3"
                    android:textSize="16sp"
                    android:id="@+id/versionTextView"
                    app:layout_constraintBottom_toTopOf="@id/developedTextView"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent" />

                <TextView
                    android:id="@+id/developedTextView"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="44dp"
                    android:fontFamily="@font/roboto_regular"
                    android:textColor="@color/ctGray3"
                    android:textSize="11sp"
                    app:layout_constraintBottom_toBottomOf="parent"
                    app:layout_constraintEnd_toEndOf="parent"
                    app:layout_constraintStart_toStartOf="parent" />


            </androidx.constraintlayout.widget.ConstraintLayout>
        </androidx.cardview.widget.CardView>
    </androidx.constraintlayout.widget.ConstraintLayout>
</layout>