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

code(Tentative)

The document contains multiple XML layouts for an Android application, including screens for user login, booking, payment, AI scanning, feedback, and scheduled moves. Each layout is structured with various UI elements such as TextViews, EditTexts, Buttons, and LinearLayouts, designed to facilitate user interaction. The layouts emphasize user-friendly design with appropriate padding, margins, and background colors.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

code(Tentative)

The document contains multiple XML layouts for an Android application, including screens for user login, booking, payment, AI scanning, feedback, and scheduled moves. Each layout is structured with various UI elements such as TextViews, EditTexts, Buttons, and LinearLayouts, designed to facilitate user interaction. The layouts emphasize user-friendly design with appropriate padding, margins, and background colors.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

First (intro)- Swadha

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


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp"
tools:context=".MainActivity">

<TextView
android:id="@+id/nameTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Welcome"
android:textSize="24sp"
android:textColor="@color/white"
android:background="#03A9F4"
android:padding="8dp"
android:gravity="center"/>

<Space
android:layout_width="match_parent"
android:layout_height="32dp" />

<TextView
android:id="@+id/loginMessageTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Haven't logged in yet?"
android:gravity="center"
android:textSize="16sp" />

<Space
android:layout_width="match_parent"
android:layout_height="16dp" />

<TextView
android:id="@+id/enterMobileTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Enter Mobile number to login"
android:gravity="center"
android:textSize="18sp" />

<EditText
android:id="@+id/mobileEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:background="@drawable/edit_text_background"
android:hint="TextBox for mobile"
android:inputType="phone"
android:padding="12dp" />
</LinearLayout>
Booking wala page -Neha

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


<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#0000FF"
android:gravity="center"
android:padding="12dp"
android:text="BOOKING"
android:textColor="#FFFFFF"
android:textSize="18sp"
android:textStyle="bold" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Name"
android:textSize="16sp"
android:layout_marginTop="10dp" />

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter your name"
android:background="#DDDDDD"
android:padding="12dp"
android:inputType="textPersonName" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Address (Pickup Location)"
android:textSize="16sp"
android:layout_marginTop="10dp" />

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter pickup address"
android:background="#DDDDDD"
android:padding="12dp"
android:inputType="textPostalAddress" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="UID NUMBER"
android:textSize="16sp"
android:layout_marginTop="10dp" />

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter UID number"
android:background="#DDDDDD"
android:padding="12dp"
android:inputType="number" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="City (Pickup Location)"
android:textSize="16sp"
android:layout_marginTop="10dp" />

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter city"
android:background="#DDDDDD"
android:padding="12dp" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Destination"
android:textSize="16sp"
android:layout_marginTop="10dp" />

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter destination"
android:background="#DDDDDD"
android:padding="12dp" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Range (Price)"
android:textSize="16sp"
android:layout_marginTop="10dp" />

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter range"
android:background="#DDDDDD"
android:padding="12dp" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Sensitivity Level"
android:textSize="16sp"
android:layout_marginTop="10dp" />

<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter sensitivity level"
android:background="#DDDDDD"
android:padding="12dp" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Date"
android:textSize="16sp"
android:layout_marginTop="10dp" />

<Button
android:id="@+id/datePickerButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Select Date"
android:layout_marginTop="5dp" />

<TextView
android:id="@+id/selectedDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Selected Date: Not Set"
android:layout_marginTop="5dp"
android:textSize="14sp" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Time"
android:textSize="16sp"
android:layout_marginTop="10dp" />

<Button android:text="Select Time" />

<TextView
android:id="@+id/selectedTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Selected Time: Not Set"
android:layout_marginTop="5dp"
android:textSize="14sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:layout_marginTop="10dp">

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#0000FF"
android:text="No, I'm good"
android:textColor="#FFFFFF"
android:padding="10dp" />

<View
android:layout_width="16dp"
android:layout_height="0dp" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#0000FF"
android:text="Choose vehicle now"
android:textColor="#FFFFFF"
android:padding="10dp" />
</LinearLayout>

</LinearLayout>
</ScrollView>

Real time tracking – Neha

Payment – Shravani
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="15dp">
<!-- Title Text -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Payment"
android:textSize="28sp"
android:textStyle="bold"
android:gravity="center"
android:background="#3a0475"
android:textColor="#FFFFFF"
android:padding="12dp"
android:layout_marginBottom="24dp"
<TextView
android:layout_width="473dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:text="Credits balance:"
android:textColor="#333333"
android:textSize="30sp"
android:fontFamily="sans-serif-medium"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="20dp"
android:gravity="start">
<!-- Add UPI ID Button -->
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ADD UPI ID"
android:textColor="#FFFFFF"
android:textSize="20sp"
android:padding="12dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="20dp"
android:background="@drawable/Button_border"
android:gravity="center" />
<!-- Add Money Button -->
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginEnd="20dp"
android:background="@drawable/Button_border"
android:gravity="center"
android:padding="12dp"
android:text="ADD AMOUNT"
android:textColor="#FFFFFF"
android:textSize="20sp" />
</LinearLayout>
<!-- Personal Info Header -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Your Info:"
android:textSize="30sp"
android:textColor="#333333"
android:layout_marginTop="20dp"
android:layout_marginBottom="10dp"
android:fontFamily="sans-serif-medium"/>
<!-- Name Input -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Name"
android:textSize="25sp"
android:textColor="#333333"
android:layout_marginTop="10dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter your name"
android:textSize="25sp"
android:padding="10dp"
android:layout_marginTop="8dp"
android:background="@drawable/Edittext_border"
android:importantForAccessibility="yes"
/>
<!-- Contact Info Input -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Contact Info"
android:textSize="25sp"
android:textColor="#333333"
android:layout_marginTop="20dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter your contact info"
android:textSize="25sp"
android:padding="10dp"
android:layout_marginTop="8dp"
android:background="@drawable/Edittext_border"
android:importantForAccessibility="yes"
/>
<!-- UPI ID Input -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="UPI ID"
android:textSize="25sp"
android:textColor="#333333"
android:layout_marginTop="20dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter your UPI ID"
android:textSize="25sp"
android:padding="10dp"
android:layout_marginTop="8dp"
android:background="@drawable/Edittext_border"
android:importantForAccessibility="yes"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginEnd="20dp"
android:background="@drawable/Button_border"
android:padding="10dp"
android:text="SUBMIT"
android:textColor="#FFFFFF"
android:textSize="30sp"
android:layout_gravity="center" />
</LinearLayout>

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


<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#3a0475"/>
<corners android:radius="8dp"/>
</shape>

<!-- res/drawable/edittext_border.xml -->


<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FFFFFF"/>
<corners android:radius="8dp"/>
<stroke android:color="#800080"
android:width="2dp"/>
</shape>

Ai scanning – Swadha
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#E0E0E0" > <TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="AI SCANNING"
android:textSize="20sp"
android:textColor="#FFFFFF" android:gravity="center"
android:padding="16dp"
android:background="#0000FF" /> <LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">

<FrameLayout
android:layout_width="150dp"
android:layout_height="150dp">

<ImageView
android:id="@+id/circularImageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/ic_happy_character" /> <TextView
android:id="@+id/characterLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textColor="#FFFFFF" android:textSize="16sp" />
</FrameLayout>

<Button
android:id="@+id/uploadButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:text="Upload photo\n(of room)"
android:textColor="#FFFFFF" android:background="#0000FF" />
</LinearLayout>

</LinearLayout>

Feedback –Shweta
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp"
tools:context=".MainActivity">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Feedback"
android:textSize="24sp"
android:textColor="@color/black"
android:gravity="center"
android:layout_marginBottom="16dp" />

<EditText
android:id="@+id/feedback_text"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="top|start"
android:hint="Enter your valuable feedback and help us improve :)"
android:inputType="textMultiLine"
android:background="@drawable/edit_text_background"
android:padding="8dp" />

<Button
android:id="@+id/submit_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="16dp"
android:text="Submit"
android:textColor="@color/white" />

</LinearLayout>
Scheduled move – Shweta
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center_horizontal"
android:padding="16dp"
android:background="#E0E0E0"> <TextView
android:id="@+id/schedule_move_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Schedule move"
android:textSize="24sp"
android:textColor="#FFFFFF" android:background="#2196F3"
android:padding="8dp"
android:layout_marginTop="16dp" />

<TextView
android:id="@+id/move_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="If no move this, else &quot;Schedule another
move&quot;"
android:textSize="16sp"
android:textColor="#000000" /> <ImageView
android:id="@+id/sad_character"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginTop="16dp"
android:src="@drawable/ic_sad_character"
android:contentDescription="A dramatically sad character" />

<TextView
android:id="@+id/no_moves_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="NO MOVES SCHEDULED YET!"
android:textSize="20sp"
android:textStyle="bold"
android:textColor="#000000" /> <Button
android:id="@+id/schedule_now_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Schedule now!!"
android:textAllCaps="false" android:background="#2196F3"
android:textColor="#FFFFFF" /> </LinearLayout>

You might also like