Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Theatre Booking App
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
antony.adewunmi-jones
Theatre Booking App
Commits
73d9a3cf
Commit
73d9a3cf
authored
Aug 18, 2023
by
Antony Adewunmi-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
63eb3c05
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
443 additions
and
14 deletions
+443
-14
MainActivity.java
app/src/main/java/com/example/bookingapp/MainActivity.java
+18
-0
done.java
app/src/main/java/com/example/bookingapp/done.java
+0
-5
myBookings.java
app/src/main/java/com/example/bookingapp/myBookings.java
+162
-3
show1.java
app/src/main/java/com/example/bookingapp/show1.java
+4
-1
show2.java
app/src/main/java/com/example/bookingapp/show2.java
+39
-2
show3.java
app/src/main/java/com/example/bookingapp/show3.java
+5
-1
show4.java
app/src/main/java/com/example/bookingapp/show4.java
+5
-1
show5.java
app/src/main/java/com/example/bookingapp/show5.java
+31
-0
my_bookings.xml
app/src/main/res/layout/my_bookings.xml
+149
-1
show1.xml
app/src/main/res/layout/show1.xml
+1
-0
show2.xml
app/src/main/res/layout/show2.xml
+13
-0
show5.xml
app/src/main/res/layout/show5.xml
+12
-0
ids.xml
app/src/main/res/values/ids.xml
+4
-0
No files found.
app/src/main/java/com/example/bookingapp/MainActivity.java
View file @
73d9a3cf
...
@@ -67,6 +67,24 @@ public class MainActivity extends AppCompatActivity {
...
@@ -67,6 +67,24 @@ public class MainActivity extends AppCompatActivity {
startActivity
(
intent
);
startActivity
(
intent
);
}
}
public
void
bookButton
(
View
view
)
{
Toast
.
makeText
(
this
,
"NO SEATS AVAILABLE"
,
Toast
.
LENGTH_LONG
).
show
();
}
public
static
int
show2Seats
=
4
;
public
static
int
show2Booked
=
0
;
public
static
int
show5Seats
=
1
;
public
static
int
show5Booked
=
0
;
public
void
bookButtonEdit2
(
View
view
)
{
show2Seats
=
show2Seats
-
1
;
show2Booked
=
show2Booked
+
1
;
}
public
void
bookButtonEdit5
(
View
view
)
{
show5Seats
=
show5Seats
-
1
;
show5Booked
=
show5Booked
+
1
;
}
}
}
\ No newline at end of file
app/src/main/java/com/example/bookingapp/done.java
View file @
73d9a3cf
...
@@ -94,27 +94,22 @@ public class done extends AppCompatActivity {
...
@@ -94,27 +94,22 @@ public class done extends AppCompatActivity {
}
}
public
void
show1Btn
(
View
view
)
{
public
void
show1Btn
(
View
view
)
{
Intent
intent
=
new
Intent
(
done
.
this
,
show1
.
class
);
Intent
intent
=
new
Intent
(
done
.
this
,
show1
.
class
);
Toast
.
makeText
(
this
,
"MOVE TO TEMPEST"
,
Toast
.
LENGTH_SHORT
).
show
();
startActivity
(
intent
);
startActivity
(
intent
);
}
}
public
void
show2Btn
(
View
view
)
{
public
void
show2Btn
(
View
view
)
{
Intent
intent
=
new
Intent
(
done
.
this
,
show2
.
class
);
Intent
intent
=
new
Intent
(
done
.
this
,
show2
.
class
);
Toast
.
makeText
(
this
,
"MOVE TO MIDSUMMER"
,
Toast
.
LENGTH_SHORT
).
show
();
startActivity
(
intent
);
startActivity
(
intent
);
}
}
public
void
show3Btn
(
View
view
)
{
public
void
show3Btn
(
View
view
)
{
Intent
intent
=
new
Intent
(
done
.
this
,
show3
.
class
);
Intent
intent
=
new
Intent
(
done
.
this
,
show3
.
class
);
Toast
.
makeText
(
this
,
"MOVE TO ROMEO"
,
Toast
.
LENGTH_SHORT
).
show
();
startActivity
(
intent
);
startActivity
(
intent
);
}
}
public
void
show4Btn
(
View
view
)
{
public
void
show4Btn
(
View
view
)
{
Intent
intent
=
new
Intent
(
done
.
this
,
show4
.
class
);
Intent
intent
=
new
Intent
(
done
.
this
,
show4
.
class
);
Toast
.
makeText
(
this
,
"MOVE TO HAMLET"
,
Toast
.
LENGTH_SHORT
).
show
();
startActivity
(
intent
);
startActivity
(
intent
);
}
}
public
void
show5Btn
(
View
view
)
{
public
void
show5Btn
(
View
view
)
{
Intent
intent
=
new
Intent
(
done
.
this
,
show5
.
class
);
Intent
intent
=
new
Intent
(
done
.
this
,
show5
.
class
);
Toast
.
makeText
(
this
,
"MOVE TO RICHARD III"
,
Toast
.
LENGTH_SHORT
).
show
();
startActivity
(
intent
);
startActivity
(
intent
);
}
}
...
...
app/src/main/java/com/example/bookingapp/myBookings.java
View file @
73d9a3cf
package
com
.
example
.
bookingapp
;
package
com
.
example
.
bookingapp
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.media.Image
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.os.Trace
;
import
android.os.Trace
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.ImageView
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
androidx.appcompat.app.ActionBar
;
import
androidx.appcompat.app.ActionBar
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.appcompat.app.AppCompatActivity
;
...
@@ -21,20 +25,104 @@ public class myBookings extends AppCompatActivity {
...
@@ -21,20 +25,104 @@ public class myBookings extends AppCompatActivity {
actionBar
.
setDisplayHomeAsUpEnabled
(
true
);
actionBar
.
setDisplayHomeAsUpEnabled
(
true
);
//a boolean variable 'isVisible' for "you have no bookings" textview
//a boolean variable 'isVisible' for "you have no bookings" textview
boolean
isVisible
=
true
;
// could be true or false
boolean
noBookisVisible
=
true
;
// could be true or false
boolean
show2isVisible
=
false
;
// could be true or false
boolean
show5isVisible
=
false
;
// could be true or false
int
seats2
=
MainActivity
.
show2Seats
;
int
seats5
=
MainActivity
.
show5Seats
;
int
booked2
=
MainActivity
.
show2Booked
;
int
booked5
=
MainActivity
.
show5Booked
;
//TextView that you want to show or hide based on 'isVisible'
//TextView that you want to show or hide based on 'isVisible'
TextView
noBookingsText
=
(
TextView
)
findViewById
(
R
.
id
.
textViewId
);
TextView
noBookingsText
=
(
TextView
)
findViewById
(
R
.
id
.
textViewId
);
TextView
yourBookingsText
=
(
TextView
)
findViewById
(
R
.
id
.
textView16
);
ImageView
show5Image
=
(
ImageView
)
findViewById
(
R
.
id
.
imageView6
);
TextView
show5Name
=
(
TextView
)
findViewById
(
R
.
id
.
textView18
);
TextView
show5Time
=
(
TextView
)
findViewById
(
R
.
id
.
textView19
);
TextView
show5Seats
=
(
TextView
)
findViewById
(
R
.
id
.
textView20
);
TextView
show5SeatsNo
=
(
TextView
)
findViewById
(
R
.
id
.
textView21
);
Button
cancel5
=
(
Button
)
findViewById
(
R
.
id
.
button13
);
show5Image
.
setVisibility
(
View
.
GONE
);
show5Name
.
setVisibility
(
View
.
GONE
);
show5Time
.
setVisibility
(
View
.
GONE
);
show5Seats
.
setVisibility
(
View
.
GONE
);
show5SeatsNo
.
setVisibility
(
View
.
GONE
);
cancel5
.
setVisibility
(
View
.
GONE
);
ImageView
show2Image
=
(
ImageView
)
findViewById
(
R
.
id
.
imageView8
);
TextView
show2Name
=
(
TextView
)
findViewById
(
R
.
id
.
textView22
);
TextView
show2Time
=
(
TextView
)
findViewById
(
R
.
id
.
textView23
);
TextView
show2Seats
=
(
TextView
)
findViewById
(
R
.
id
.
textView24
);
TextView
show2SeatsNo
=
(
TextView
)
findViewById
(
R
.
id
.
textView25
);
Button
cancel2
=
(
Button
)
findViewById
(
R
.
id
.
button12
);
show2Image
.
setVisibility
(
View
.
GONE
);
show2Name
.
setVisibility
(
View
.
GONE
);
show2Time
.
setVisibility
(
View
.
GONE
);
show2Seats
.
setVisibility
(
View
.
GONE
);
show2SeatsNo
.
setVisibility
(
View
.
GONE
);
cancel2
.
setVisibility
(
View
.
GONE
);
int
seats2Booked
=
MainActivity
.
show2Booked
;
show2SeatsNo
.
setText
(
String
.
valueOf
(
seats2Booked
));
int
seats5Booked
=
MainActivity
.
show5Booked
;
show5SeatsNo
.
setText
(
String
.
valueOf
(
seats5Booked
));
if
((
booked2
>
0
)
||
(
booked5
>
0
))
{
noBookisVisible
=
false
;
}
if
(
booked2
>
0
){
show2SeatsNo
.
setText
(
String
.
valueOf
(
seats2Booked
));
//make show 2 bookings visible
show2Image
.
setVisibility
(
View
.
VISIBLE
);
show2Name
.
setVisibility
(
View
.
VISIBLE
);
show2Time
.
setVisibility
(
View
.
VISIBLE
);
show2Seats
.
setVisibility
(
View
.
VISIBLE
);
show2SeatsNo
.
setVisibility
(
View
.
VISIBLE
);
cancel2
.
setVisibility
(
View
.
VISIBLE
);
}
if
(
booked5
>
0
){
show5SeatsNo
.
setText
(
String
.
valueOf
(
seats5Booked
));
//make show 5 bookings visible
show5Image
.
setVisibility
(
View
.
VISIBLE
);
show5Name
.
setVisibility
(
View
.
VISIBLE
);
show5Time
.
setVisibility
(
View
.
VISIBLE
);
show5Seats
.
setVisibility
(
View
.
VISIBLE
);
show5SeatsNo
.
setVisibility
(
View
.
VISIBLE
);
cancel5
.
setVisibility
(
View
.
VISIBLE
);
}
//statement to show or hide the TextView
//statement to show or hide the TextView
if
(
isVisible
)
{
if
(
noBook
isVisible
)
{
noBookingsText
.
setVisibility
(
View
.
VISIBLE
);
noBookingsText
.
setVisibility
(
View
.
VISIBLE
);
yourBookingsText
.
setVisibility
(
View
.
GONE
);
}
else
{
}
else
{
noBookingsText
.
setVisibility
(
View
.
GONE
);
noBookingsText
.
setVisibility
(
View
.
GONE
);
// or textView.setVisibility(View.GONE); (depending on your requirement)
yourBookingsText
.
setVisibility
(
View
.
VISIBLE
);
}
}
}
}
public
void
todoneBtn
(
View
view
)
public
void
todoneBtn
(
View
view
)
...
@@ -43,6 +131,77 @@ public class myBookings extends AppCompatActivity {
...
@@ -43,6 +131,77 @@ public class myBookings extends AppCompatActivity {
startActivity
(
intent
);
startActivity
(
intent
);
}
}
public
void
cancel2Btn
(
View
view
)
{
if
(
MainActivity
.
show2Booked
>
0
){
MainActivity
.
show2Seats
=
MainActivity
.
show2Seats
+
1
;
MainActivity
.
show2Booked
=
MainActivity
.
show2Booked
-
1
;
int
booked2
=
MainActivity
.
show2Booked
;
TextView
Booking2
=
findViewById
(
R
.
id
.
textView25
);
Booking2
.
setText
(
String
.
valueOf
(
booked2
));
}
else
{
Toast
.
makeText
(
this
,
"NO SEATS AVAILABLE"
,
Toast
.
LENGTH_LONG
).
show
();
}
if
(
MainActivity
.
show2Booked
<=
0
){
ImageView
show2Image
=
(
ImageView
)
findViewById
(
R
.
id
.
imageView8
);
TextView
show2Name
=
(
TextView
)
findViewById
(
R
.
id
.
textView22
);
TextView
show2Time
=
(
TextView
)
findViewById
(
R
.
id
.
textView23
);
TextView
show2Seats
=
(
TextView
)
findViewById
(
R
.
id
.
textView24
);
TextView
show2SeatsNo
=
(
TextView
)
findViewById
(
R
.
id
.
textView25
);
Button
cancel2
=
(
Button
)
findViewById
(
R
.
id
.
button12
);
show2Image
.
setVisibility
(
View
.
GONE
);
show2Name
.
setVisibility
(
View
.
GONE
);
show2Time
.
setVisibility
(
View
.
GONE
);
show2Seats
.
setVisibility
(
View
.
GONE
);
show2SeatsNo
.
setVisibility
(
View
.
GONE
);
cancel2
.
setVisibility
(
View
.
GONE
);
}
}
public
void
cancel5Btn
(
View
view
)
{
if
(
MainActivity
.
show5Booked
>
0
){
MainActivity
.
show5Seats
=
MainActivity
.
show5Seats
+
1
;
MainActivity
.
show5Booked
=
MainActivity
.
show5Booked
-
1
;
int
booked2
=
MainActivity
.
show5Booked
;
TextView
Booking2
=
findViewById
(
R
.
id
.
textView21
);
Booking2
.
setText
(
String
.
valueOf
(
booked2
));
}
else
{
Toast
.
makeText
(
this
,
"NO SEATS AVAILABLE"
,
Toast
.
LENGTH_LONG
).
show
();
}
if
(
MainActivity
.
show5Booked
<=
0
){
ImageView
show5Image
=
(
ImageView
)
findViewById
(
R
.
id
.
imageView6
);
TextView
show5Name
=
(
TextView
)
findViewById
(
R
.
id
.
textView18
);
TextView
show5Time
=
(
TextView
)
findViewById
(
R
.
id
.
textView19
);
TextView
show5Seats
=
(
TextView
)
findViewById
(
R
.
id
.
textView20
);
TextView
show5SeatsNo
=
(
TextView
)
findViewById
(
R
.
id
.
textView21
);
Button
cancel5
=
(
Button
)
findViewById
(
R
.
id
.
button13
);
show5Image
.
setVisibility
(
View
.
GONE
);
show5Name
.
setVisibility
(
View
.
GONE
);
show5Time
.
setVisibility
(
View
.
GONE
);
show5Seats
.
setVisibility
(
View
.
GONE
);
show5SeatsNo
.
setVisibility
(
View
.
GONE
);
cancel5
.
setVisibility
(
View
.
GONE
);
}
}
...
...
app/src/main/java/com/example/bookingapp/show1.java
View file @
73d9a3cf
...
@@ -3,6 +3,7 @@ package com.example.bookingapp;
...
@@ -3,6 +3,7 @@ package com.example.bookingapp;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.Toast
;
import
androidx.appcompat.app.ActionBar
;
import
androidx.appcompat.app.ActionBar
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.appcompat.app.AppCompatActivity
;
...
@@ -19,7 +20,9 @@ public class show1 extends AppCompatActivity {
...
@@ -19,7 +20,9 @@ public class show1 extends AppCompatActivity {
actionBar
.
setDisplayHomeAsUpEnabled
(
true
);
actionBar
.
setDisplayHomeAsUpEnabled
(
true
);
}
}
public
void
bookButton
(
View
view
)
{
Toast
.
makeText
(
this
,
"NO SEATS AVAILABLE"
,
Toast
.
LENGTH_LONG
).
show
();
}
...
...
app/src/main/java/com/example/bookingapp/show2.java
View file @
73d9a3cf
package
com
.
example
.
bookingapp
;
package
com
.
example
.
bookingapp
;
import
android.annotation.SuppressLint
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.webkit.WebView
;
import
android.widget.Button
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
androidx.appcompat.app.ActionBar
;
import
androidx.appcompat.app.ActionBar
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.appcompat.app.AppCompatActivity
;
public
class
show2
extends
AppCompatActivity
{
public
class
show2
extends
AppCompatActivity
{
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
...
@@ -15,11 +21,42 @@ public class show2 extends AppCompatActivity {
...
@@ -15,11 +21,42 @@ public class show2 extends AppCompatActivity {
ActionBar
actionBar
=
getSupportActionBar
();
ActionBar
actionBar
=
getSupportActionBar
();
actionBar
.
setHomeButtonEnabled
(
true
);
actionBar
.
setHomeButtonEnabled
(
true
);
actionBar
.
setDisplayHomeAsUpEnabled
(
true
);
actionBar
.
setDisplayHomeAsUpEnabled
(
true
);
int
seats
=
MainActivity
.
show2Seats
;
String
seatsString
=
Integer
.
toString
(
seats
);
TextView
seatsTextview
=
findViewById
(
R
.
id
.
textView15
);
seatsTextview
.
setText
(
String
.
valueOf
(
seats
));
}
}
public
void
bookButtonEdit2
(
View
view
)
{
if
(
MainActivity
.
show2Seats
>
0
){
MainActivity
.
show2Seats
=
MainActivity
.
show2Seats
-
1
;
MainActivity
.
show2Booked
=
MainActivity
.
show2Booked
+
1
;
int
seats
=
MainActivity
.
show2Seats
;
int
booked
=
MainActivity
.
show2Booked
;
String
seatsString
=
Integer
.
toString
(
seats
);
String
bookedString
=
Integer
.
toString
(
booked
);
TextView
seatsTextview
=
findViewById
(
R
.
id
.
textView15
);
seatsTextview
.
setText
(
String
.
valueOf
(
seats
));
Toast
.
makeText
(
this
,
bookedString
+
" Booked"
,
Toast
.
LENGTH_SHORT
).
show
();
}
else
{
Toast
.
makeText
(
this
,
"NO SEATS AVAILABLE"
,
Toast
.
LENGTH_LONG
).
show
();
}
}
}
}
app/src/main/java/com/example/bookingapp/show3.java
View file @
73d9a3cf
package
com
.
example
.
bookingapp
;
package
com
.
example
.
bookingapp
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.Toast
;
import
androidx.appcompat.app.ActionBar
;
import
androidx.appcompat.app.ActionBar
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.appcompat.app.AppCompatActivity
;
...
@@ -18,7 +20,9 @@ public class show3 extends AppCompatActivity {
...
@@ -18,7 +20,9 @@ public class show3 extends AppCompatActivity {
}
}
public
void
bookButton
(
View
view
)
{
Toast
.
makeText
(
this
,
"NO SEATS AVAILABLE"
,
Toast
.
LENGTH_LONG
).
show
();
}
...
...
app/src/main/java/com/example/bookingapp/show4.java
View file @
73d9a3cf
package
com
.
example
.
bookingapp
;
package
com
.
example
.
bookingapp
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.Toast
;
import
androidx.appcompat.app.ActionBar
;
import
androidx.appcompat.app.ActionBar
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.appcompat.app.AppCompatActivity
;
...
@@ -18,7 +20,9 @@ public class show4 extends AppCompatActivity {
...
@@ -18,7 +20,9 @@ public class show4 extends AppCompatActivity {
}
}
public
void
bookButton
(
View
view
)
{
Toast
.
makeText
(
this
,
"NO SEATS AVAILABLE"
,
Toast
.
LENGTH_LONG
).
show
();
}
...
...
app/src/main/java/com/example/bookingapp/show5.java
View file @
73d9a3cf
package
com
.
example
.
bookingapp
;
package
com
.
example
.
bookingapp
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
androidx.appcompat.app.ActionBar
;
import
androidx.appcompat.app.ActionBar
;
import
androidx.appcompat.app.AppCompatActivity
;
import
androidx.appcompat.app.AppCompatActivity
;
...
@@ -15,9 +18,37 @@ public class show5 extends AppCompatActivity {
...
@@ -15,9 +18,37 @@ public class show5 extends AppCompatActivity {
ActionBar
actionBar
=
getSupportActionBar
();
ActionBar
actionBar
=
getSupportActionBar
();
actionBar
.
setHomeButtonEnabled
(
true
);
actionBar
.
setHomeButtonEnabled
(
true
);
actionBar
.
setDisplayHomeAsUpEnabled
(
true
);
actionBar
.
setDisplayHomeAsUpEnabled
(
true
);
int
seats
=
MainActivity
.
show5Seats
;
TextView
myTextView
=
findViewById
(
R
.
id
.
textView17
);
myTextView
.
setText
(
String
.
valueOf
(
seats
));
}
public
void
bookButtonEdit5
(
View
view
)
{
if
(
MainActivity
.
show5Seats
>
0
){
MainActivity
.
show5Seats
=
MainActivity
.
show5Seats
-
1
;
MainActivity
.
show5Booked
=
MainActivity
.
show5Booked
+
1
;
int
seats
=
MainActivity
.
show5Seats
;
int
booked
=
MainActivity
.
show5Booked
;
String
seatsString
=
Integer
.
toString
(
seats
);
String
bookedString
=
Integer
.
toString
(
booked
);
TextView
seatsTextview
=
findViewById
(
R
.
id
.
textView17
);
seatsTextview
.
setText
(
String
.
valueOf
(
seats
));
Toast
.
makeText
(
this
,
bookedString
+
" Booked"
,
Toast
.
LENGTH_SHORT
).
show
();
}
else
{
Toast
.
makeText
(
this
,
"NO SEATS AVAILABLE"
,
Toast
.
LENGTH_LONG
).
show
();
}
}
}
...
...
app/src/main/res/layout/my_bookings.xml
View file @
73d9a3cf
...
@@ -7,6 +7,61 @@
...
@@ -7,6 +7,61 @@
tools:context=
".myBookings"
>
tools:context=
".myBookings"
>
<Button
android:id=
"@+id/button13"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"32dp"
android:layout_marginTop=
"292dp"
android:onClick=
"cancel5Btn"
android:text=
"Cancel"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/textView25"
android:layout_width=
"35dp"
android:layout_height=
"25dp"
android:layout_marginStart=
"5dp"
android:layout_marginTop=
"460dp"
android:layout_marginEnd=
"172dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.142"
app:layout_constraintStart_toEndOf=
"@+id/textView24"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/textView24"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"28dp"
android:layout_marginTop=
"464dp"
android:text=
"Seats: "
app:layout_constraintStart_toEndOf=
"@+id/imageView8"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/textView23"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"42dp"
android:layout_marginEnd=
"91dp"
android:text=
"Date: 08/09 Time: 7PM"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"1.0"
app:layout_constraintStart_toEndOf=
"@+id/imageView8"
app:layout_constraintTop_toBottomOf=
"@+id/textView22"
/>
<TextView
android:id=
"@+id/textView22"
android:layout_width=
"210dp"
android:layout_height=
"26dp"
android:layout_marginStart=
"28dp"
android:layout_marginTop=
"416dp"
android:text=
"A Midsummer Nights Dream"
app:layout_constraintStart_toEndOf=
"@+id/imageView8"
app:layout_constraintTop_toTopOf=
"parent"
/>
<Button
<Button
android:id=
"@+id/button"
android:id=
"@+id/button"
android:layout_width=
"172dp"
android:layout_width=
"172dp"
...
@@ -37,12 +92,105 @@
...
@@ -37,12 +92,105 @@
android:layout_width=
"149dp"
android:layout_width=
"149dp"
android:layout_height=
"21dp"
android:layout_height=
"21dp"
android:layout_marginStart=
"131dp"
android:layout_marginStart=
"131dp"
android:layout_marginTop=
"
106
dp"
android:layout_marginTop=
"
72
dp"
android:layout_marginEnd=
"131dp"
android:layout_marginEnd=
"131dp"
android:text=
"You have No bookings"
android:text=
"You have No bookings"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.0"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/button"
/>
app:layout_constraintTop_toBottomOf=
"@+id/button"
/>
<TextView
android:id=
"@+id/textView16"
android:layout_width=
"115dp"
android:layout_height=
"29dp"
android:layout_marginStart=
"130dp"
android:layout_marginTop=
"72dp"
android:layout_marginEnd=
"150dp"
android:text=
"Your Bookings: "
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.992"
app:layout_constraintStart_toEndOf=
"@+id/textViewId"
app:layout_constraintTop_toBottomOf=
"@+id/button"
/>
<TextView
android:id=
"@+id/textView18"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"20dp"
android:layout_marginTop=
"232dp"
android:layout_marginEnd=
"161dp"
android:text=
"King Richard III"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.125"
app:layout_constraintStart_toEndOf=
"@+id/imageView6"
app:layout_constraintTop_toTopOf=
"parent"
/>
<ImageView
android:id=
"@+id/imageView6"
android:layout_width=
"112dp"
android:layout_height=
"70dp"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"220dp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:srcCompat=
"@drawable/richard"
/>
<TextView
android:id=
"@+id/textView19"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"28dp"
android:layout_marginTop=
"252dp"
android:layout_marginEnd=
"104dp"
android:text=
"Date: 08/09 Time: 7PM"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"1.0"
app:layout_constraintStart_toEndOf=
"@+id/imageView6"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/textView20"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginTop=
"276dp"
android:text=
"Seats: "
app:layout_constraintStart_toEndOf=
"@+id/imageView6"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/textView21"
android:layout_width=
"35dp"
android:layout_height=
"25dp"
android:layout_marginStart=
"2dp"
android:layout_marginTop=
"276dp"
app:layout_constraintStart_toEndOf=
"@+id/textView20"
app:layout_constraintTop_toTopOf=
"parent"
/>
<ImageView
android:id=
"@+id/imageView8"
android:layout_width=
"112dp"
android:layout_height=
"86dp"
android:layout_marginStart=
"24dp"
android:layout_marginEnd=
"29dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@+id/textView22"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.615"
app:srcCompat=
"@drawable/midsummer"
/>
<Button
android:id=
"@+id/button12"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"38dp"
android:layout_marginTop=
"13dp"
android:onClick=
"cancel2Btn"
android:text=
"Cancel"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/imageView8"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/show1.xml
View file @
73d9a3cf
...
@@ -81,6 +81,7 @@
...
@@ -81,6 +81,7 @@
android:layout_marginStart=
"118dp"
android:layout_marginStart=
"118dp"
android:layout_marginTop=
"42dp"
android:layout_marginTop=
"42dp"
android:layout_marginEnd=
"119dp"
android:layout_marginEnd=
"119dp"
android:onClick=
"bookButton"
android:text=
"Book Seats"
android:text=
"Book Seats"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
...
app/src/main/res/layout/show2.xml
View file @
73d9a3cf
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
android:layout_marginStart=
"118dp"
android:layout_marginStart=
"118dp"
android:layout_marginTop=
"20dp"
android:layout_marginTop=
"20dp"
android:layout_marginEnd=
"119dp"
android:layout_marginEnd=
"119dp"
android:onClick=
"bookButtonEdit2"
android:text=
"Book Seats"
android:text=
"Book Seats"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
@@ -85,5 +86,17 @@
...
@@ -85,5 +86,17 @@
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/textView12"
/>
app:layout_constraintTop_toBottomOf=
"@+id/textView12"
/>
<TextView
android:id=
"@+id/textView15"
android:layout_width=
"64dp"
android:layout_height=
"35dp"
android:layout_marginStart=
"8dp"
android:layout_marginTop=
"37dp"
android:layout_marginEnd=
"101dp"
android:text=
""
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/textView14"
app:layout_constraintTop_toBottomOf=
"@+id/textView12"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/show5.xml
View file @
73d9a3cf
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
android:layout_marginStart=
"118dp"
android:layout_marginStart=
"118dp"
android:layout_marginTop=
"18dp"
android:layout_marginTop=
"18dp"
android:layout_marginEnd=
"119dp"
android:layout_marginEnd=
"119dp"
android:onClick=
"bookButtonEdit5"
android:text=
"Book Seats"
android:text=
"Book Seats"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.0"
app:layout_constraintHorizontal_bias=
"0.0"
...
@@ -89,5 +90,16 @@
...
@@ -89,5 +90,16 @@
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/textView6"
/>
app:layout_constraintTop_toBottomOf=
"@+id/textView6"
/>
<TextView
android:id=
"@+id/textView17"
android:layout_width=
"69dp"
android:layout_height=
"29dp"
android:layout_marginStart=
"7dp"
android:layout_marginTop=
"20dp"
android:layout_marginEnd=
"88dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/textView14"
app:layout_constraintTop_toBottomOf=
"@+id/textView6"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/values/ids.xml
0 → 100644
View file @
73d9a3cf
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item
name=
"webView"
type=
"id"
/>
</resources>
\ No newline at end of file
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