Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uBus
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chiara Veronica Señires
uBus
Commits
ab6c9aa0
Commit
ab6c9aa0
authored
Oct 29, 2015
by
Pearl Jen Santos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed layouts for different interfaces
parent
389fbc86
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
309 additions
and
73 deletions
+309
-73
misc.xml
mobile-app/10-16-15/Project/.idea/misc.xml
+1
-1
ReservingSeats.java
.../java/com/example/pearlsantos/project/ReservingSeats.java
+1
-1
ubus_logo.png
.../10-16-15/Project/app/src/main/res/drawable/ubus_logo.png
+0
-0
ubus_logo3.png
...10-16-15/Project/app/src/main/res/drawable/ubus_logo3.png
+0
-0
activity_confirmation.xml
...Project/app/src/main/res/layout/activity_confirmation.xml
+121
-71
listview3.xml
...pp/10-16-15/Project/app/src/main/res/layout/listview3.xml
+186
-0
No files found.
mobile-app/10-16-15/Project/.idea/misc.xml
View file @
ab6c9aa0
...
...
@@ -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"
>
...
...
mobile-app/10-16-15/Project/app/src/main/java/com/example/pearlsantos/project/ReservingSeats.java
View file @
ab6c9aa0
...
...
@@ -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_ticke
ts
);
setContentView
(
R
.
layout
.
activity_reserving_sea
ts
);
String
bN
=
busSchedule
.
getString
(
"busNum"
,
""
).
trim
();
String
pN
=
busSchedule
.
getString
(
"plateNum"
,
""
).
trim
();
...
...
mobile-app/10-16-15/Project/app/src/main/res/drawable/ubus_logo.png
0 → 100644
View file @
ab6c9aa0
3.67 KB
mobile-app/10-16-15/Project/app/src/main/res/drawable/ubus_logo3.png
0 → 100644
View file @
ab6c9aa0
10.3 KB
mobile-app/10-16-15/Project/app/src/main/res/layout/activity_confirmation.xml
View file @
ab6c9aa0
...
...
@@ -6,60 +6,96 @@
android:orientation=
"vertical"
tools:context=
"${relativePackage}.${activityClass}"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:gravity=
"center"
android:layout_marginBottom=
"20dp"
android:layout_marginTop=
"20dp"
>
<TextView
android:id=
"@+id/noOfSeats"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"00 "
android:marginLeft=
"20dp"
android:marginRight=
"20dp"
android:textAppearance=
"?android:attr/textAppearanceLarge"
/>
<TextView
android:id=
"@+id/noOfSeatsLabel"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Seats Reserved!"
android:marginLeft=
"20dp"
android:marginRight=
"20dp"
android:textAppearance=
"?android:attr/textAppearanceLarge"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/LinearLayout2"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<LinearLayout
android:id=
"@+id/LinearLayout3"
android:layout_width=
"wrap_content"
<FrameLayout
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
android:layout_width=
"wrap_content"
android:marginLeft=
"20dp"
android:marginRight=
"20dp"
android:layout_weight=
"2"
>
<TextView
android:id=
"@+id/busNum"
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Large Text"
android:textAppearance=
"?android:attr/textAppearanceLarge"
/>
android:layout_gravity=
"center"
android:src=
"@drawable/ubus_logo"
android:id=
"@+id/busCompanyLogo2"
/>
<TextView
android:id=
"@+id/plateNum"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Medium Text"
android:textAppearance=
"?android:attr/textAppearanceMedium"
/>
</LinearLayout>
</FrameLayout>
<LinearLayout
android:id=
"@+id/LinearLayout
4
"
android:id=
"@+id/LinearLayout
3
"
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/LinearLayout
5
"
android:id=
"@+id/LinearLayout
4
"
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:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Medium Text"
android:textAppearance=
"?android:attr/textAppearanceMedium"
/>
<TextView
android:id=
"@+id/seatsAvailableLabel"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Seats Available"
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"
/>
<TextView
android:id=
"@+id/seatsAvailable"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"25dp"
android:text=
"Medium Text"
android:textAppearance=
"?android:attr/textAppearanceMedium"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id=
"@+id/LinearLayout
6
"
android:layout_width=
"
wrap_cont
ent"
android:id=
"@+id/LinearLayout
5
"
android:layout_width=
"
match_par
ent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:orientation=
"horizontal"
>
<
TextView
android:id=
"@+id/
cost
"
<
LinearLayout
android:id=
"@+id/
LinearLayout6
"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Large Text"
android:textAppearance=
"?android:attr/textAppearanceLarge"
/>
android:gravity=
"center"
android:layout_weight=
"2"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/forLabel"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"for"
android:textAppearance=
"?android:attr/textAppearanceLarge"
/>
<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/seatsPurchased"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:text=
"00"
android:textAppearance=
"?android:attr/textAppearanceMedium"
/>
<TextView
android:id=
"@+id/noOfSeatsReserved"
</LinearLayout>
<LinearLayout
android:id=
"@+id/LinearLayout8"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Large Text"
android:textAppearance=
"?android:attr/textAppearanceLarge"
/>
android:layout_gravity=
"center"
android:layout_weight=
"2"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/purchaseLabel"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:text=
"TOTAL: P "
android:textAppearance=
"?android:attr/textAppearanceLarge"
/>
<TextView
android:id=
"@+id/purchase"
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: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>
mobile-app/10-16-15/Project/app/src/main/res/layout/listview3.xml
0 → 100644
View file @
ab6c9aa0
<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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment