0% found this document useful (0 votes)
15 views

Task3

The document is an XML layout for a login screen in an Android application. It includes a Lottie animation, input fields for username and password, a checkbox for showing the password, and buttons for login and registration. The layout is designed with a vertical orientation and uses various UI components such as CardView, TextView, EditText, and CheckBox.

Uploaded by

snehatumaskar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Task3

The document is an XML layout for a login screen in an Android application. It includes a Lottie animation, input fields for username and password, a checkbox for showing the password, and buttons for login and registration. The layout is designed with a vertical orientation and uses various UI components such as CardView, TextView, EditText, and CheckBox.

Uploaded by

snehatumaskar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Task3

<?xml version="1.0" encoding="utf-8"?>


<LinearLayout
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"
android:background="@drawable/login_bg"
android:orientation="vertical"
tools:context=".LoginActivity">

<com.airbnb.lottie.LottieAnimationView
android:id="@+id/loginanim"
android:layout_width="250dp"
android:layout_height="132dp"
android:layout_gravity="center"
android:layout_marginTop="120dp"
app:lottie_autoPlay="true"
app:lottie_loop="false"
app:lottie_rawRes="@raw/login"
app:lottie_speed="1" />

<androidx.cardview.widget.CardView
android:id="@+id/cvlogin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardBackgroundColor="@color/light_yellow"
app:cardCornerRadius="30dp"
android:layout_margin="10sp"
app:cardElevation="13dp">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginBottom="30dp">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:fontFamily="sans-serif-light"
android:gravity="center_horizontal"
android:text="@string/swim"
android:textColor="@color/orange"
android:textSize="20sp"
android:textStyle="bold" />

<EditText
android:id="@+id/etloginus"
android:layout_width="match_parent"
android:layout_height="49sp"
android:layout_margin="10dp"
android:autofillHints="username"
android:fontFamily="sans-serif-thin"
android:hint="@string/up"
android:inputType="text"
android:textColorHint="@color/white"
android:textSize="16sp"
android:textStyle="bold" />

<EditText
android:id="@+id/etloginpg"
android:layout_width="match_parent"
android:layout_height="49dp"
android:layout_margin="10dp"
android:autofillHints="password"
android:fontFamily="sans-serif-thin"
android:hint="@string/mess"
android:inputType="textPassword"
android:textColor="@color/white"
android:textColorHint="@color/white"
android:textSize="16sp"
android:textStyle="bold" />

<CheckBox
android:id="@+id/cbshowpass"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/snow"
android:textColor="@color/white"
android:textStyle="bold"
android:checked="false"/>

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btnloginos"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_margin="10sp"
android:background="@color/pich"
android:fontFamily="sans-serif-black"
android:text="@string/map"
android:textColor="@color/black"
android:textSize="14sp"
android:textStyle="bold" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10sp"
android:text="@string/cake"
android:textSize="18sp"
android:textStyle="bold"
android:textColor="@color/grey"
android:layout_gravity="center"/>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/tvloginex"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="15dp"
android:fontFamily="sans-serif-thin"
android:layout_marginStart="15dp"
android:text="@string/down"
android:textColor="@color/white"
android:textSize="14sp"
android:textStyle="bold"/>

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btnloginresg"
android:layout_width="wrap_content"
android:layout_height="43dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="30dp"
android:background="@color/pich"
android:fontFamily="sans-serif-black"
android:text="@string/rees"
android:textColor="@color/black"
android:textSize="14sp"
android:textStyle="bold" />

</LinearLayout>

</LinearLayout>

</androidx.cardview.widget.CardView>

</LinearLayout>

Output

You might also like