Commit ab6c9aa0 authored by Pearl Jen Santos's avatar Pearl Jen Santos

changed layouts for different interfaces

parent 389fbc86
......@@ -37,7 +37,7 @@
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
......
......@@ -30,7 +30,7 @@ public class ReservingSeats extends Dialog {
busSchedule = getContext().getSharedPreferences("bus", Context.MODE_PRIVATE);
this.setTitle("Reserve Seat(s) for Bus");
setContentView(R.layout.number_of_tickets);
setContentView(R.layout.activity_reserving_seats);
String bN = busSchedule.getString("busNum", "").trim();
String pN = busSchedule.getString("plateNum", "").trim();
......
......@@ -7,59 +7,95 @@
tools:context="${relativePackage}.${activityClass}" >
<LinearLayout
android:id="@+id/LinearLayout2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
android:orientation="horizontal"
android:gravity="center"
android:layout_marginBottom="20dp"
android:layout_marginTop="20dp">
<LinearLayout
android:id="@+id/LinearLayout3"
<TextView
android:id="@+id/noOfSeats"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
android:text="00 "
android:marginLeft="20dp"
android:marginRight="20dp"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/busNum"
android:id="@+id/noOfSeatsLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Large Text"
android:text="Seats Reserved!"
android:marginLeft="20dp"
android:marginRight="20dp"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/plateNum"
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<FrameLayout
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:marginLeft="20dp"
android:marginRight="20dp"
android:layout_weight="2">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
android:layout_gravity="center"
android:src="@drawable/ubus_logo"
android:id="@+id/busCompanyLogo2" />
</FrameLayout>
<LinearLayout
android:id="@+id/LinearLayout4"
android:id="@+id/LinearLayout3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
android:orientation="vertical"
android:layout_weight="2">
<TextView
android:id="@+id/fromLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="From"
android:marginLeft="20dp"
android:marginRight="20dp"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/from"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="25dp"
android:text="Medium Text"
android:text="PlaceA"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/depTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ETD 00:00"
android:marginLeft="20dp"
android:marginRight="20dp"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout5"
android:id="@+id/LinearLayout4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
android:orientation="vertical"
android:layout_weight="2">
<TextView
android:id="@+id/toLabel"
......@@ -72,67 +108,87 @@
android:id="@+id/to"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="27dp"
android:text="Medium Text"
android:text="PlaceB"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/depTime"
android:id="@+id/arrTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Medium Text"
android:text="ETA 00:00"
android:marginLeft="20dp"
android:marginRight="20dp"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/seatsAvailableLabel"
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<LinearLayout
android:id="@+id/LinearLayout6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Seats Available"
android:textAppearance="?android:attr/textAppearanceMedium" />
android:gravity="center"
android:layout_weight="2"
android:orientation="horizontal" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:id="@+id/seatsPurchasedLogo"
android:src="@drawable/ubus_logo"/>
<TextView
android:id="@+id/seatsAvailable"
android:id="@+id/seatsPurchased"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="25dp"
android:text="Medium Text"
android:layout_gravity="center"
android:text="00"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout6"
android:id="@+id/LinearLayout8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="2"
android:orientation="horizontal" >
<TextView
android:id="@+id/cost"
android:id="@+id/purchaseLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Large Text"
android:layout_gravity="center"
android:text="TOTAL: P "
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/forLabel"
android:id="@+id/purchase"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="for"
android:textAppearance="?android:attr/textAppearanceLarge" />
android:layout_gravity="center"
android:text="00"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
<TextView
android:id="@+id/noOfSeatsReserved"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Large Text"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_gravity="right"
android:orientation="horizontal" >
<Button
......@@ -140,13 +196,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity = "center"
android:text="OK" />
<Button
android:id="@+id/cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity = "center"
android:text="Cancel" />
android:text="OK"
android:layout_marginRight="20dp"/>
</LinearLayout>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="${relativePackage}.${activityClass}" >
<LinearLayout
android:id="@+id/LinearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/LinearLayout2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity = "center"
android:orientation="horizontal" >
<FrameLayout
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:marginLeft="20dp"
android:marginRight="20dp"
android:layout_weight="2">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:id="@+id/busCompanyLogo"
android:src="@drawable/ubus_logo"
/>
</FrameLayout>
<LinearLayout
android:id="@+id/LinearLayout3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_weight="2">
<TextView
android:id="@+id/fromLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="From"
android:marginLeft="20dp"
android:marginRight="20dp"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/from"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PlaceA"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/depTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ETD 00:00"
android:marginLeft="20dp"
android:marginRight="20dp"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_weight="2">
<TextView
android:id="@+id/toLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="To"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/to"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PlaceB"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/arrTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ETA 00:00"
android:marginLeft="20dp"
android:marginRight="20dp"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<LinearLayout
android:id="@+id/LinearLayout6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_weight="2"
android:orientation="horizontal" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:id="@+id/seatsAvailableLogo"
android:src="@drawable/ubus_logo"/>
<TextView
android:id="@+id/seatsAvailable"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="00"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_weight="2"
android:orientation="horizontal" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:id="@+id/costLogo"
android:src="@drawable/ubus_logo"/>
<TextView
android:id="@+id/cost"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="00"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:gravity="right">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Buy Tickets"
android:id="@+id/buyTickets"
android:layout_marginRight="20dp"
android:layout_gravity="center" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment