2025-05-12 19:18:26 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<RelativeLayout 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/rlLogin"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
tools:context=".activity.LoginActivity">
|
|
|
|
|
|
|
|
|
|
<include
|
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
|
layout="@layout/toolbar" />
|
|
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_below="@id/toolbar"
|
|
|
|
|
android:fillViewport="true"
|
2025-05-13 19:09:29 +00:00
|
|
|
android:clipToPadding="false"
|
|
|
|
|
android:padding="24dp">
|
2025-05-12 19:18:26 +00:00
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2025-05-13 19:09:29 +00:00
|
|
|
android:layout_gravity="center"
|
2025-05-12 19:18:26 +00:00
|
|
|
android:gravity="center"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
2025-05-13 19:09:29 +00:00
|
|
|
<!-- Logo and Welcome Section -->
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="120dp"
|
|
|
|
|
android:layout_height="120dp"
|
|
|
|
|
android:layout_marginBottom="24dp"
|
|
|
|
|
android:src="@drawable/logo_add_location"
|
|
|
|
|
android:contentDescription="App Logo" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
2025-05-12 19:18:26 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2025-05-13 19:09:29 +00:00
|
|
|
android:text="@string/welcome_back"
|
|
|
|
|
android:textAlignment="center"
|
|
|
|
|
android:textSize="28sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textColor="?attr/colorPrimary"
|
|
|
|
|
android:layout_marginBottom="8dp" />
|
2025-05-12 19:18:26 +00:00
|
|
|
|
2025-05-13 19:09:29 +00:00
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/sign_in_to_continue"
|
|
|
|
|
android:textAlignment="center"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:textColor="?attr/colorOnSurface"
|
|
|
|
|
android:alpha="0.7"
|
|
|
|
|
android:layout_marginBottom="32dp" />
|
2025-05-12 19:18:26 +00:00
|
|
|
|
2025-05-13 19:09:29 +00:00
|
|
|
<!-- Login Form Card -->
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
2025-05-12 19:18:26 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2025-05-13 19:09:29 +00:00
|
|
|
app:cardCornerRadius="16dp"
|
|
|
|
|
app:cardElevation="4dp"
|
|
|
|
|
android:layout_marginBottom="24dp">
|
2025-05-12 19:18:26 +00:00
|
|
|
|
2025-05-13 19:09:29 +00:00
|
|
|
<LinearLayout
|
2025-05-12 19:18:26 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2025-05-13 19:09:29 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:padding="24dp">
|
2025-05-12 19:18:26 +00:00
|
|
|
|
2025-05-13 19:09:29 +00:00
|
|
|
<!-- Username Field -->
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
|
app:boxStrokeColor="?attr/colorPrimary"
|
|
|
|
|
app:hintTextColor="?attr/colorPrimary"
|
|
|
|
|
app:startIconDrawable="@drawable/ic_email"
|
|
|
|
|
app:startIconTint="?attr/colorPrimary">
|
2025-05-12 19:18:26 +00:00
|
|
|
|
2025-05-13 19:09:29 +00:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
android:id="@+id/etUsername"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="@string/Enter_Username"
|
|
|
|
|
android:importantForAutofill="no"
|
|
|
|
|
android:inputType="textPersonName"
|
|
|
|
|
android:paddingTop="16dp"
|
|
|
|
|
android:paddingBottom="16dp" />
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
2025-05-12 19:18:26 +00:00
|
|
|
|
2025-05-13 19:09:29 +00:00
|
|
|
<!-- Password Field -->
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginBottom="24dp"
|
|
|
|
|
app:boxStrokeColor="?attr/colorPrimary"
|
|
|
|
|
app:hintTextColor="?attr/colorPrimary"
|
|
|
|
|
app:passwordToggleEnabled="true"
|
|
|
|
|
app:passwordToggleTint="?attr/colorPrimary"
|
|
|
|
|
app:startIconDrawable="@drawable/ic_lock"
|
|
|
|
|
app:startIconTint="?attr/colorPrimary">
|
2025-05-12 19:18:26 +00:00
|
|
|
|
2025-05-13 19:09:29 +00:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
|
android:id="@+id/etPassword"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:hint="@string/Enter_Password"
|
|
|
|
|
android:importantForAutofill="no"
|
|
|
|
|
android:inputType="textPassword"
|
|
|
|
|
android:paddingTop="16dp"
|
|
|
|
|
android:paddingBottom="16dp" />
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
<!-- Forgot Password Link -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvForgotPassword"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="end"
|
|
|
|
|
android:text="Forgot Password?"
|
|
|
|
|
android:textColor="?attr/colorPrimary"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:layout_marginBottom="24dp"
|
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:padding="4dp" />
|
|
|
|
|
|
|
|
|
|
<!-- Login Button -->
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnLogin"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingTop="14dp"
|
|
|
|
|
android:paddingBottom="14dp"
|
|
|
|
|
android:text="@string/LOGIN"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
app:cornerRadius="12dp"
|
|
|
|
|
app:elevation="2dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
|
|
<!-- Registration Link -->
|
2025-05-12 19:18:26 +00:00
|
|
|
<LinearLayout
|
2025-05-13 19:09:29 +00:00
|
|
|
android:layout_width="wrap_content"
|
2025-05-12 19:18:26 +00:00
|
|
|
android:layout_height="wrap_content"
|
2025-05-13 19:09:29 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:padding="8dp">
|
2025-05-12 19:18:26 +00:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2025-05-13 19:09:29 +00:00
|
|
|
android:text="@string/Dont_have_an_Account"
|
|
|
|
|
android:textSize="14sp" />
|
2025-05-12 19:18:26 +00:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvRegisterRedirect"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2025-05-13 19:09:29 +00:00
|
|
|
android:layout_marginStart="4dp"
|
2025-05-12 19:18:26 +00:00
|
|
|
android:text="@string/Please_register"
|
|
|
|
|
android:textColor="?attr/colorPrimary"
|
2025-05-13 19:09:29 +00:00
|
|
|
android:textSize="14sp"
|
2025-05-12 19:18:26 +00:00
|
|
|
android:textStyle="bold" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</ScrollView>
|
2025-05-13 19:09:29 +00:00
|
|
|
</RelativeLayout>
|