Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PlaysRUs
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
sam.pople
PlaysRUs
Commits
2919e307
Commit
2919e307
authored
Jun 16, 2023
by
sam.pople
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try8
parent
092fc9ea
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
1789 additions
and
66 deletions
+1789
-66
AndroidManifest.xml
PlaysRUs2/app/src/main/AndroidManifest.xml
+6
-0
Database.java
...RUs2/app/src/main/java/com/example/playsrus/Database.java
+18
-18
MainActivity.java
.../app/src/main/java/com/example/playsrus/MainActivity.java
+44
-5
antigone.java
...RUs2/app/src/main/java/com/example/playsrus/antigone.java
+127
-0
details.java
...sRUs2/app/src/main/java/com/example/playsrus/details.java
+9
-1
filtered.java
...RUs2/app/src/main/java/com/example/playsrus/filtered.java
+30
-0
hamlet.java
PlaysRUs2/app/src/main/java/com/example/playsrus/hamlet.java
+126
-0
midsummer.java
...Us2/app/src/main/java/com/example/playsrus/midsummer.java
+126
-0
oedipus.java
...sRUs2/app/src/main/java/com/example/playsrus/oedipus.java
+127
-0
seating.java
...sRUs2/app/src/main/java/com/example/playsrus/seating.java
+18
-21
tempest.java
...sRUs2/app/src/main/java/com/example/playsrus/tempest.java
+126
-0
activity_main.xml
PlaysRUs2/app/src/main/res/layout/activity_main.xml
+5
-5
antigone.xml
PlaysRUs2/app/src/main/res/layout/antigone.xml
+202
-0
filteredwheelchair.xml
PlaysRUs2/app/src/main/res/layout/filteredwheelchair.xml
+3
-3
hamlet.xml
PlaysRUs2/app/src/main/res/layout/hamlet.xml
+202
-0
login.xml
PlaysRUs2/app/src/main/res/layout/login.xml
+4
-3
midsummer.xml
PlaysRUs2/app/src/main/res/layout/midsummer.xml
+202
-0
oedipus.xml
PlaysRUs2/app/src/main/res/layout/oedipus.xml
+202
-0
seating.xml
PlaysRUs2/app/src/main/res/layout/seating.xml
+8
-8
signup.xml
PlaysRUs2/app/src/main/res/layout/signup.xml
+2
-2
tempest.xml
PlaysRUs2/app/src/main/res/layout/tempest.xml
+202
-0
No files found.
PlaysRUs2/app/src/main/AndroidManifest.xml
View file @
2919e307
...
...
@@ -28,6 +28,12 @@
<activity
android:name=
".Login"
></activity>
<activity
android:name=
".signup"
></activity>
<activity
android:name=
".Database"
></activity>
<activity
android:name=
".hamlet"
></activity>
<activity
android:name=
".midsummer"
></activity>
<activity
android:name=
".oedipus"
></activity>
<activity
android:name=
".tempest"
></activity>
<activity
android:name=
".antigone"
></activity>
...
...
PlaysRUs2/app/src/main/java/com/example/playsrus/Database.java
View file @
2919e307
...
...
@@ -11,10 +11,9 @@ import java.util.ArrayList;
import
java.util.List
;
public
class
Database
extends
SQLiteOpenHelper
{
public
static
final
String
databasename
=
"data.db"
;
public
static
final
String
databasename
=
"data
baseone
.db"
;
public
Database
(
@Nullable
Context
cont
)
{
super
(
cont
,
"data.db"
,
null
,
1
);
super
(
cont
,
"databaseone.db"
,
null
,
1
);
}
@Override
public
void
onCreate
(
SQLiteDatabase
data
)
{
...
...
@@ -27,6 +26,7 @@ public class Database extends SQLiteOpenHelper {
data
.
execSQL
(
"DROP TABLE IF EXISTS user"
);
data
.
execSQL
(
"DROP TABLE IF EXISTS play"
);
data
.
execSQL
(
"DROP TABLE IF EXISTS booking"
);
onCreate
(
data
);
}
public
Boolean
signupinput
(
String
username
,
String
password
)
{
...
...
@@ -90,17 +90,6 @@ public class Database extends SQLiteOpenHelper {
int
rows
=
data
.
update
(
"play"
,
cv
,
"playName=?"
,
new
String
[]{
playName
});
return
rows
>
0
;
}
public
int
gettickets
(
String
playName
)
{
SQLiteDatabase
data
=
this
.
getReadableDatabase
();
Cursor
record
=
data
.
query
(
"play"
,
new
String
[]{
"tickets"
},
"playName=?"
,
new
String
[]{
playName
},
null
,
null
,
null
);
if
(
record
.
moveToFirst
())
{
int
ticketsavail
=
record
.
getInt
(
record
.
getColumnIndexOrThrow
(
"tickets"
));
record
.
close
();
return
ticketsavail
;
}
record
.
close
();
return
0
;
}
public
List
<
String
>
currentbookings
()
{
List
<
String
>
findbookings
=
new
ArrayList
<>();
SQLiteDatabase
data
=
this
.
getReadableDatabase
();
...
...
@@ -114,7 +103,18 @@ public class Database extends SQLiteOpenHelper {
}
record
.
close
();
return
findbookings
;
}
public
int
gettickets
(
String
playName
)
{
SQLiteDatabase
data
=
this
.
getReadableDatabase
();
Cursor
record
=
data
.
query
(
"play"
,
new
String
[]{
"tickets"
},
"playName=?"
,
new
String
[]{
playName
},
null
,
null
,
null
);
if
(
record
.
moveToFirst
())
{
int
ticketsavail
=
record
.
getInt
(
record
.
getColumnIndexOrThrow
(
"tickets"
));
record
.
close
();
return
ticketsavail
;
}
record
.
close
();
return
0
;
}
}
...
...
PlaysRUs2/app/src/main/java/com/example/playsrus/MainActivity.java
View file @
2919e307
...
...
@@ -19,27 +19,65 @@ public class MainActivity extends AppCompatActivity {
setContentView
(
R
.
layout
.
activity_main
);
plays
=
new
ArrayList
<>();
plays
.
add
(
new
performancetickets
(
"The Merchant of Venice"
,
17
));
plays
.
add
(
new
performancetickets
(
"Hamlet"
,
20
));
plays
.
add
(
new
performancetickets
(
"A Midsummer Night's Dream"
,
40
));
plays
.
add
(
new
performancetickets
(
"Oedipus the King"
,
17
));
plays
.
add
(
new
performancetickets
(
"The Tempest"
,
20
));
plays
.
add
(
new
performancetickets
(
"Antigone"
,
23
));
Button
performance1
=
(
Button
)
findViewById
(
R
.
id
.
Performance1
);
Button
wheelchair
=
(
Button
)
findViewById
(
R
.
id
.
filtered
);
Button
view
=
(
Button
)
findViewById
(
R
.
id
.
viewall
);
view
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
Button
hamlet
=
(
Button
)
findViewById
(
R
.
id
.
hamlet
);
Button
midsummer
=
(
Button
)
findViewById
(
R
.
id
.
midsummer
);
Button
oedipus
=
(
Button
)
findViewById
(
R
.
id
.
oedipus
);
Button
antigone
=
(
Button
)
findViewById
(
R
.
id
.
antigone
);
Button
tempest
=
(
Button
)
findViewById
(
R
.
id
.
tempest
);
midsummer
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
view
.
class
);
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
midsummer
.
class
);
startActivity
(
intent
);
}
});
wheelchair
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
tempest
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
filtered
.
class
);
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
tempest
.
class
);
startActivity
(
intent
);
}
});
antigone
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
antigone
.
class
);
startActivity
(
intent
);
}
});
oedipus
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
oedipus
.
class
);
startActivity
(
intent
);
}
});
hamlet
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
hamlet
.
class
);
startActivity
(
intent
);
}
});
view
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
MainActivity
.
this
,
view
.
class
);
startActivity
(
intent
);
}
});
wheelchair
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
...
...
@@ -48,6 +86,7 @@ public class MainActivity extends AppCompatActivity {
startActivity
(
intent
);
}
});
performance1
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
...
...
PlaysRUs2/app/src/main/java/com/example/playsrus/antigone.java
0 → 100644
View file @
2919e307
package
com
.
example
.
playsrus
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.AdapterView
;
import
android.widget.ArrayAdapter
;
import
android.widget.Button
;
import
android.widget.EditText
;
import
android.widget.Spinner
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
androidx.annotation.Nullable
;
import
androidx.appcompat.app.AppCompatActivity
;
public
class
antigone
extends
AppCompatActivity
implements
AdapterView
.
OnItemSelectedListener
{
String
[]
seatings
=
{
"Seated"
};
private
EditText
fullName
;
private
TextView
displayplayname
;
private
Database
database
;
private
TextView
displayorderedtickets
;
private
int
orderedtickets
=
0
;
private
int
noticket
=
23
;
@Override
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
antigone
);
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedticketshamlet6
);
fullName
=
(
EditText
)
findViewById
(
R
.
id
.
fullnamehamlet6
);
Spinner
hamletseatingtype
=
(
Spinner
)
findViewById
(
R
.
id
.
hamletseatingtype6
);
hamletseatingtype
.
setOnItemSelectedListener
(
this
);
ArrayAdapter
aa
=
new
ArrayAdapter
(
this
,
android
.
R
.
layout
.
simple_spinner_item
,
seatings
);
aa
.
setDropDownViewResource
(
android
.
R
.
layout
.
simple_spinner_dropdown_item
);
hamletseatingtype
.
setAdapter
(
aa
);
Button
confirm
=
(
Button
)
findViewById
(
R
.
id
.
hamletconfirm6
);
Button
seatingback
=
(
Button
)
findViewById
(
R
.
id
.
hamletback6
);
Intent
intent
=
getIntent
();
database
=
new
Database
(
this
);
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
String
playName
=
"Antigone"
;
database
.
playinput
(
playName
,
noticket
);
database
=
new
Database
(
this
);
TextView
displaytickets
=
findViewById
(
R
.
id
.
hamlettickets6
);
String
playnameforthis
=
"Antigone"
;
int
ticketsthere
=
database
.
gettickets
(
playnameforthis
);
displaytickets
.
setText
(
String
.
valueOf
(
ticketsthere
));
confirm
.
setOnClickListener
(
v
->
{
TextView
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedticketshamlet6
);
int
orderedtickets
=
Integer
.
parseInt
(
displayorderedtickets
.
getText
().
toString
());
if
(
orderedtickets
>
0
)
{
if
(
orderedtickets
<=
ticketsthere
)
{
int
currentickets
=
ticketsthere
-
orderedtickets
;
displaytickets
.
setText
(
String
.
valueOf
(
ticketsthere
));
boolean
bookedupdate
=
database
.
ticketsupdate
(
playnameforthis
,
currentickets
);
if
(
bookedupdate
)
{
Intent
screenchange
=
new
Intent
(
antigone
.
this
,
booked
.
class
);
startActivity
(
screenchange
);
}
else
{
Toast
.
makeText
(
antigone
.
this
,
"Please try again."
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
else
{
Toast
.
makeText
(
antigone
.
this
,
"Please order less tickets."
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
else
{
Toast
.
makeText
(
antigone
.
this
,
"Please order some tickets."
,
Toast
.
LENGTH_SHORT
).
show
();
}
});
seatingback
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
antigone
.
this
,
MainActivity
.
class
);
startActivity
(
intent
);
}
});
Button
plusone
=
findViewById
(
R
.
id
.
plusonehamlet6
);
Button
minusone
=
findViewById
(
R
.
id
.
minusonehamlet6
);
plusone
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
orderedtickets
++;
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
}
});
minusone
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
if
(
orderedtickets
>
0
)
{
orderedtickets
--;
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
}
}
});
}
private
boolean
bookingdone
(
String
playName
,
int
noticket
)
{
boolean
storebooking
=
database
.
bookinginput
(
playName
,
Integer
.
parseInt
(
String
.
valueOf
(
noticket
)));
return
storebooking
;
}
@Override
public
void
onItemSelected
(
AdapterView
<?>
adapterView
,
View
view
,
int
i
,
long
l
)
{
}
@Override
public
void
onNothingSelected
(
AdapterView
<?>
adapterView
)
{
}
}
PlaysRUs2/app/src/main/java/com/example/playsrus/details.java
View file @
2919e307
...
...
@@ -19,10 +19,18 @@ public class details extends AppCompatActivity {
Button
back
=
(
Button
)
findViewById
(
R
.
id
.
back
);
Button
book
=
(
Button
)
findViewById
(
R
.
id
.
bookdetails
);
displaytickets
=
findViewById
(
R
.
id
.
displaytickets
);
TextView
displaytickets
=
(
TextView
)
findViewById
(
R
.
id
.
displaytickets
);
displaytickets
.
setText
(
String
.
valueOf
(
noticket
));
Intent
intent
=
getIntent
();
database
=
new
Database
(
this
);
displaytickets
.
setText
(
String
.
valueOf
(
noticket
));
String
playName
=
"The Merchant of Venice"
;
database
.
playinput
(
playName
,
noticket
);
database
=
new
Database
(
this
);
String
playnameforthis
=
"The Merchant of Venice"
;
int
noticket
=
database
.
gettickets
(
playnameforthis
);
displaytickets
.
setText
(
String
.
valueOf
(
noticket
));
book
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
...
...
PlaysRUs2/app/src/main/java/com/example/playsrus/filtered.java
View file @
2919e307
...
...
@@ -6,15 +6,24 @@ import android.content.Intent;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.TextView
;
public
class
filtered
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
filteredwheelchair
);
Button
undo
=
(
Button
)
findViewById
(
R
.
id
.
undo
);
Button
performance
=
(
Button
)
findViewById
(
R
.
id
.
performance
);
Button
view
=
(
Button
)
findViewById
(
R
.
id
.
filteredview
);
Button
midsummer
=
(
Button
)
findViewById
(
R
.
id
.
midsummerfilter
);
Button
oedipus
=
(
Button
)
findViewById
(
R
.
id
.
oedipusfilter
);
Button
tempest
=
(
Button
)
findViewById
(
R
.
id
.
tempestfilter
);
view
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
...
...
@@ -22,6 +31,27 @@ public class filtered extends AppCompatActivity {
startActivity
(
intent
);
}
});
tempest
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
filtered
.
this
,
tempest
.
class
);
startActivity
(
intent
);
}
});
oedipus
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
filtered
.
this
,
oedipus
.
class
);
startActivity
(
intent
);
}
});
midsummer
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
filtered
.
this
,
midsummer
.
class
);
startActivity
(
intent
);
}
});
performance
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
...
...
PlaysRUs2/app/src/main/java/com/example/playsrus/hamlet.java
0 → 100644
View file @
2919e307
package
com
.
example
.
playsrus
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.AdapterView
;
import
android.widget.ArrayAdapter
;
import
android.widget.Button
;
import
android.widget.EditText
;
import
android.widget.Spinner
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
androidx.annotation.Nullable
;
import
androidx.appcompat.app.AppCompatActivity
;
public
class
hamlet
extends
AppCompatActivity
implements
AdapterView
.
OnItemSelectedListener
{
String
[]
seatings
=
{
"Seated"
};
private
EditText
fullName
;
private
TextView
displayplayname
;
private
Database
database
;
private
TextView
displayorderedtickets
;
private
int
orderedtickets
=
0
;
private
int
noticket
=
20
;
@Override
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
hamlet
);
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedticketshamlet2
);
fullName
=
(
EditText
)
findViewById
(
R
.
id
.
fullnamehamlet2
);
Spinner
hamletseatingtype
=
(
Spinner
)
findViewById
(
R
.
id
.
hamletseatingtype2
);
hamletseatingtype
.
setOnItemSelectedListener
(
this
);
ArrayAdapter
aa
=
new
ArrayAdapter
(
this
,
android
.
R
.
layout
.
simple_spinner_item
,
seatings
);
aa
.
setDropDownViewResource
(
android
.
R
.
layout
.
simple_spinner_dropdown_item
);
hamletseatingtype
.
setAdapter
(
aa
);
Button
confirm
=
(
Button
)
findViewById
(
R
.
id
.
hamletconfirm2
);
Button
seatingback
=
(
Button
)
findViewById
(
R
.
id
.
hamletback2
);
Intent
intent
=
getIntent
();
database
=
new
Database
(
this
);
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
String
playName
=
"Hamlet"
;
database
.
playinput
(
playName
,
noticket
);
database
=
new
Database
(
this
);
TextView
displaytickets
=
findViewById
(
R
.
id
.
hamlettickets2
);
String
playnameforthis
=
"Hamlet"
;
int
ticketsthere
=
database
.
gettickets
(
playnameforthis
);
displaytickets
.
setText
(
String
.
valueOf
(
ticketsthere
));
confirm
.
setOnClickListener
(
v
->
{
TextView
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedticketshamlet2
);
int
orderedtickets
=
Integer
.
parseInt
(
displayorderedtickets
.
getText
().
toString
());
if
(
orderedtickets
>
0
)
{
if
(
orderedtickets
<=
ticketsthere
)
{
int
currentickets
=
ticketsthere
-
orderedtickets
;
displaytickets
.
setText
(
String
.
valueOf
(
ticketsthere
));
boolean
bookedupdate
=
database
.
ticketsupdate
(
playnameforthis
,
currentickets
);
if
(
bookedupdate
)
{
Intent
screenchange
=
new
Intent
(
hamlet
.
this
,
booked
.
class
);
startActivity
(
screenchange
);
}
else
{
Toast
.
makeText
(
hamlet
.
this
,
"Please try again."
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
else
{
Toast
.
makeText
(
hamlet
.
this
,
"Please order less tickets."
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
else
{
Toast
.
makeText
(
hamlet
.
this
,
"Please order some tickets."
,
Toast
.
LENGTH_SHORT
).
show
();
}
});
seatingback
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
hamlet
.
this
,
MainActivity
.
class
);
startActivity
(
intent
);
}
});
Button
plusone
=
findViewById
(
R
.
id
.
plusonehamlet2
);
Button
minusone
=
findViewById
(
R
.
id
.
minusonehamlet2
);
plusone
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
orderedtickets
++;
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
}
});
minusone
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
if
(
orderedtickets
>
0
)
{
orderedtickets
--;
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
}
}
});
}
private
boolean
bookingdone
(
String
playName
,
int
noticket
)
{
boolean
storebooking
=
database
.
bookinginput
(
playName
,
Integer
.
parseInt
(
String
.
valueOf
(
noticket
)));
return
storebooking
;
}
@Override
public
void
onItemSelected
(
AdapterView
<?>
adapterView
,
View
view
,
int
i
,
long
l
)
{
}
@Override
public
void
onNothingSelected
(
AdapterView
<?>
adapterView
)
{
}
}
PlaysRUs2/app/src/main/java/com/example/playsrus/midsummer.java
0 → 100644
View file @
2919e307
package
com
.
example
.
playsrus
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.AdapterView
;
import
android.widget.ArrayAdapter
;
import
android.widget.Button
;
import
android.widget.EditText
;
import
android.widget.Spinner
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
androidx.annotation.Nullable
;
import
androidx.appcompat.app.AppCompatActivity
;
public
class
midsummer
extends
AppCompatActivity
implements
AdapterView
.
OnItemSelectedListener
{
String
[]
seatings
=
{
"Seated"
};
private
EditText
fullName
;
private
TextView
displayplayname
;
private
Database
database
;
private
TextView
displayorderedtickets
;
private
int
orderedtickets
=
0
;
private
int
noticket
=
40
;
@Override
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
midsummer
);
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedticketshamlet4
);
fullName
=
(
EditText
)
findViewById
(
R
.
id
.
fullnamehamlet4
);
Spinner
hamletseatingtype
=
(
Spinner
)
findViewById
(
R
.
id
.
hamletseatingtype4
);
hamletseatingtype
.
setOnItemSelectedListener
(
this
);
ArrayAdapter
aa
=
new
ArrayAdapter
(
this
,
android
.
R
.
layout
.
simple_spinner_item
,
seatings
);
aa
.
setDropDownViewResource
(
android
.
R
.
layout
.
simple_spinner_dropdown_item
);
hamletseatingtype
.
setAdapter
(
aa
);
Button
confirm
=
(
Button
)
findViewById
(
R
.
id
.
hamletconfirm4
);
Button
seatingback
=
(
Button
)
findViewById
(
R
.
id
.
hamletback4
);
Intent
intent
=
getIntent
();
database
=
new
Database
(
this
);
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
String
playName
=
"A Midsummer Night's Dream"
;
database
.
playinput
(
playName
,
noticket
);
database
=
new
Database
(
this
);
TextView
displaytickets
=
findViewById
(
R
.
id
.
hamlettickets4
);
String
playnameforthis
=
"A Midsummer Night's Dream"
;
int
ticketsthere
=
database
.
gettickets
(
playnameforthis
);
displaytickets
.
setText
(
String
.
valueOf
(
ticketsthere
));
confirm
.
setOnClickListener
(
v
->
{
TextView
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedticketshamlet2
);
int
orderedtickets
=
Integer
.
parseInt
(
displayorderedtickets
.
getText
().
toString
());
if
(
orderedtickets
>
0
)
{
if
(
orderedtickets
<=
ticketsthere
)
{
int
currentickets
=
ticketsthere
-
orderedtickets
;
displaytickets
.
setText
(
String
.
valueOf
(
ticketsthere
));
boolean
bookedupdate
=
database
.
ticketsupdate
(
playnameforthis
,
currentickets
);
if
(
bookedupdate
)
{
Intent
screenchange
=
new
Intent
(
midsummer
.
this
,
booked
.
class
);
startActivity
(
screenchange
);
}
else
{
Toast
.
makeText
(
midsummer
.
this
,
"Please try again."
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
else
{
Toast
.
makeText
(
midsummer
.
this
,
"Please order less tickets."
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
else
{
Toast
.
makeText
(
midsummer
.
this
,
"Please order some tickets."
,
Toast
.
LENGTH_SHORT
).
show
();
}
});
seatingback
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
midsummer
.
this
,
MainActivity
.
class
);
startActivity
(
intent
);
}
});
Button
plusone
=
findViewById
(
R
.
id
.
plusonehamlet4
);
Button
minusone
=
findViewById
(
R
.
id
.
minusonehamlet4
);
plusone
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
orderedtickets
++;
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
}
});
minusone
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
if
(
orderedtickets
>
0
)
{
orderedtickets
--;
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
}
}
});
}
private
boolean
bookingdone
(
String
playName
,
int
noticket
)
{
boolean
storebooking
=
database
.
bookinginput
(
playName
,
Integer
.
parseInt
(
String
.
valueOf
(
noticket
)));
return
storebooking
;
}
@Override
public
void
onItemSelected
(
AdapterView
<?>
adapterView
,
View
view
,
int
i
,
long
l
)
{
}
@Override
public
void
onNothingSelected
(
AdapterView
<?>
adapterView
)
{
}
}
PlaysRUs2/app/src/main/java/com/example/playsrus/oedipus.java
0 → 100644
View file @
2919e307
package
com
.
example
.
playsrus
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.AdapterView
;
import
android.widget.ArrayAdapter
;
import
android.widget.Button
;
import
android.widget.EditText
;
import
android.widget.Spinner
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
androidx.annotation.Nullable
;
import
androidx.appcompat.app.AppCompatActivity
;
public
class
oedipus
extends
AppCompatActivity
implements
AdapterView
.
OnItemSelectedListener
{
String
[]
seatings
=
{
"Seated"
};
private
EditText
fullName
;
private
TextView
displayplayname
;
private
Database
database
;
private
TextView
displayorderedtickets
;
private
int
orderedtickets
=
0
;
private
int
noticket
=
17
;
@Override
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
oedipus
);
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedticketshamlet3
);
fullName
=
(
EditText
)
findViewById
(
R
.
id
.
fullnamehamlet3
);
Spinner
hamletseatingtype
=
(
Spinner
)
findViewById
(
R
.
id
.
hamletseatingtype3
);
hamletseatingtype
.
setOnItemSelectedListener
(
this
);
ArrayAdapter
aa
=
new
ArrayAdapter
(
this
,
android
.
R
.
layout
.
simple_spinner_item
,
seatings
);
aa
.
setDropDownViewResource
(
android
.
R
.
layout
.
simple_spinner_dropdown_item
);
hamletseatingtype
.
setAdapter
(
aa
);
Button
confirm
=
(
Button
)
findViewById
(
R
.
id
.
hamletconfirm3
);
Button
seatingback
=
(
Button
)
findViewById
(
R
.
id
.
hamletback3
);
Intent
intent
=
getIntent
();
database
=
new
Database
(
this
);
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
String
playName
=
"Oedipus the King"
;
database
.
playinput
(
playName
,
noticket
);
database
=
new
Database
(
this
);
TextView
displaytickets
=
findViewById
(
R
.
id
.
hamlettickets3
);
String
playnameforthis
=
"Oedipus the King"
;
int
ticketsthere
=
database
.
gettickets
(
playnameforthis
);
displaytickets
.
setText
(
String
.
valueOf
(
ticketsthere
));
confirm
.
setOnClickListener
(
v
->
{
TextView
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedticketshamlet3
);
int
orderedtickets
=
Integer
.
parseInt
(
displayorderedtickets
.
getText
().
toString
());
if
(
orderedtickets
>
0
)
{
if
(
orderedtickets
<=
ticketsthere
)
{
int
currentickets
=
ticketsthere
-
orderedtickets
;
displaytickets
.
setText
(
String
.
valueOf
(
ticketsthere
));
boolean
bookedupdate
=
database
.
ticketsupdate
(
playnameforthis
,
currentickets
);
if
(
bookedupdate
)
{
Intent
screenchange
=
new
Intent
(
oedipus
.
this
,
booked
.
class
);
startActivity
(
screenchange
);
}
else
{
Toast
.
makeText
(
oedipus
.
this
,
"Please try again."
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
else
{
Toast
.
makeText
(
oedipus
.
this
,
"Please order less tickets."
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
else
{
Toast
.
makeText
(
oedipus
.
this
,
"Please order some tickets."
,
Toast
.
LENGTH_SHORT
).
show
();
}
});
seatingback
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
oedipus
.
this
,
MainActivity
.
class
);
startActivity
(
intent
);
}
});
Button
plusone
=
findViewById
(
R
.
id
.
plusonehamlet3
);
Button
minusone
=
findViewById
(
R
.
id
.
minusonehamlet3
);
plusone
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
orderedtickets
++;
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
}
});
minusone
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
if
(
orderedtickets
>
0
)
{
orderedtickets
--;
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
}
}
});
}
private
boolean
bookingdone
(
String
playName
,
int
noticket
)
{
boolean
storebooking
=
database
.
bookinginput
(
playName
,
Integer
.
parseInt
(
String
.
valueOf
(
noticket
)));
return
storebooking
;
}
@Override
public
void
onItemSelected
(
AdapterView
<?>
adapterView
,
View
view
,
int
i
,
long
l
)
{
}
@Override
public
void
onNothingSelected
(
AdapterView
<?>
adapterView
)
{
}
}
PlaysRUs2/app/src/main/java/com/example/playsrus/seating.java
View file @
2919e307
package
com
.
example
.
playsrus
;
import
androidx.annotation.Nullable
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.widget.Toast
;
import
android.widget.EditText
;
import
android.widget.Spinner
;
...
...
@@ -13,9 +14,6 @@ import android.widget.TextView;
import
android.widget.ArrayAdapter
;
import
android.widget.Button
;
import
org.w3c.dom.Text
;
public
class
seating
extends
AppCompatActivity
implements
AdapterView
.
OnItemSelectedListener
{
String
[]
seatings
=
{
"Seated"
};
private
EditText
fullName
;
...
...
@@ -29,36 +27,35 @@ public class seating extends AppCompatActivity implements AdapterView.OnItemSele
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
seating
);
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedtickets
);
fullName
=
(
EditText
)
findViewById
(
R
.
id
.
fullname
);
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedtickets
hamlet
);
fullName
=
(
EditText
)
findViewById
(
R
.
id
.
fullname
hamlet
);
displayplayname
=
findViewById
(
R
.
id
.
displayplayname
);
String
playName
=
getIntent
().
getStringExtra
(
"playName"
);
Spinner
seatingtype
=
(
Spinner
)
findViewById
(
R
.
id
.
seatingtype
);
Spinner
seatingtype
=
(
Spinner
)
findViewById
(
R
.
id
.
hamlet
seatingtype
);
seatingtype
.
setOnItemSelectedListener
(
this
);
ArrayAdapter
aa
=
new
ArrayAdapter
(
this
,
android
.
R
.
layout
.
simple_spinner_item
,
seatings
);
aa
.
setDropDownViewResource
(
android
.
R
.
layout
.
simple_spinner_dropdown_item
);
seatingtype
.
setAdapter
(
aa
);
Button
confirm
=
(
Button
)
findViewById
(
R
.
id
.
confirm
);
Button
seatingback
=
(
Button
)
findViewById
(
R
.
id
.
seating
back
);
Button
confirm
=
(
Button
)
findViewById
(
R
.
id
.
hamlet
confirm
);
Button
seatingback
=
(
Button
)
findViewById
(
R
.
id
.
hamlet
back
);
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
Intent
intent
=
getIntent
();
database
=
new
Database
(
this
);
TextView
displaytickets
=
findViewById
(
R
.
id
.
venice
tickets
);
// int ticketsavail = database.gettickets(playnameforthis)
;
int
tickets
avail
=
17
;
displaytickets
.
setText
(
String
.
valueOf
(
tickets
avail
));
TextView
displaytickets
=
findViewById
(
R
.
id
.
hamlet
tickets
);
String
playnameforthis
=
"The Merchant of Venice"
;
int
tickets
there
=
database
.
gettickets
(
playnameforthis
)
;
displaytickets
.
setText
(
String
.
valueOf
(
tickets
there
));
confirm
.
setOnClickListener
(
v
->
{
TextView
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedtickets
);
TextView
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedtickets
hamlet
);
int
orderedtickets
=
Integer
.
parseInt
(
displayorderedtickets
.
getText
().
toString
());
if
(
orderedtickets
>
0
)
{
String
playnameforthis
=
"The Merchant of Venice"
;
int
ticketsthere
=
database
.
gettickets
(
playnameforthis
);
if
(
orderedtickets
<=
ticketsthere
)
{
int
currentickets
=
ticketsthere
-
orderedtickets
;
displaytickets
.
setText
(
String
.
valueOf
(
ticketsthere
));
boolean
bookedupdate
=
database
.
ticketsupdate
(
playnameforthis
,
currentickets
);
if
(
bookedupdate
)
{
Intent
screenchange
=
new
Intent
(
seating
.
this
,
booked
.
class
);
...
...
@@ -82,12 +79,12 @@ public class seating extends AppCompatActivity implements AdapterView.OnItemSele
startActivity
(
intent
);
}
});
Button
minusone
=
findViewById
(
R
.
id
.
minusone
);
Button
plusone
=
findViewById
(
R
.
id
.
plusone
);
Button
plusone
=
findViewById
(
R
.
id
.
plusonehamlet
);
Button
minusone
=
findViewById
(
R
.
id
.
minusonehamlet
);
plusone
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
orderedtickets
++;
orderedtickets
++;
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
}
});
...
...
@@ -95,7 +92,7 @@ public class seating extends AppCompatActivity implements AdapterView.OnItemSele
@Override
public
void
onClick
(
View
v
)
{
if
(
orderedtickets
>
0
)
{
orderedtickets
--;
orderedtickets
--;
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
}
}
...
...
PlaysRUs2/app/src/main/java/com/example/playsrus/tempest.java
0 → 100644
View file @
2919e307
package
com
.
example
.
playsrus
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.AdapterView
;
import
android.widget.ArrayAdapter
;
import
android.widget.Button
;
import
android.widget.EditText
;
import
android.widget.Spinner
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
androidx.annotation.Nullable
;
import
androidx.appcompat.app.AppCompatActivity
;
public
class
tempest
extends
AppCompatActivity
implements
AdapterView
.
OnItemSelectedListener
{
String
[]
seatings
=
{
"Seated"
};
private
EditText
fullName
;
private
TextView
displayplayname
;
private
Database
database
;
private
TextView
displayorderedtickets
;
private
int
orderedtickets
=
0
;
private
int
noticket
=
20
;
@Override
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
tempest
);
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedticketshamlet5
);
fullName
=
(
EditText
)
findViewById
(
R
.
id
.
fullnamehamlet5
);
Spinner
hamletseatingtype
=
(
Spinner
)
findViewById
(
R
.
id
.
hamletseatingtype5
);
hamletseatingtype
.
setOnItemSelectedListener
(
this
);
ArrayAdapter
aa
=
new
ArrayAdapter
(
this
,
android
.
R
.
layout
.
simple_spinner_item
,
seatings
);
aa
.
setDropDownViewResource
(
android
.
R
.
layout
.
simple_spinner_dropdown_item
);
hamletseatingtype
.
setAdapter
(
aa
);
Button
confirm
=
(
Button
)
findViewById
(
R
.
id
.
hamletconfirm5
);
Button
seatingback
=
(
Button
)
findViewById
(
R
.
id
.
hamletback5
);
Intent
intent
=
getIntent
();
database
=
new
Database
(
this
);
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
String
playName
=
"The Tempest"
;
database
.
playinput
(
playName
,
noticket
);
database
=
new
Database
(
this
);
TextView
displaytickets
=
findViewById
(
R
.
id
.
hamlettickets5
);
String
playnameforthis
=
"The Tempest"
;
int
ticketsthere
=
database
.
gettickets
(
playnameforthis
);
displaytickets
.
setText
(
String
.
valueOf
(
ticketsthere
));
confirm
.
setOnClickListener
(
v
->
{
TextView
displayorderedtickets
=
findViewById
(
R
.
id
.
orderedticketshamlet3
);
int
orderedtickets
=
Integer
.
parseInt
(
displayorderedtickets
.
getText
().
toString
());
if
(
orderedtickets
>
0
)
{
if
(
orderedtickets
<=
ticketsthere
)
{
int
currentickets
=
ticketsthere
-
orderedtickets
;
displaytickets
.
setText
(
String
.
valueOf
(
ticketsthere
));
boolean
bookedupdate
=
database
.
ticketsupdate
(
playnameforthis
,
currentickets
);
if
(
bookedupdate
)
{
Intent
screenchange
=
new
Intent
(
tempest
.
this
,
booked
.
class
);
startActivity
(
screenchange
);
}
else
{
Toast
.
makeText
(
tempest
.
this
,
"Please try again."
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
else
{
Toast
.
makeText
(
tempest
.
this
,
"Please order less tickets."
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
else
{
Toast
.
makeText
(
tempest
.
this
,
"Please order some tickets."
,
Toast
.
LENGTH_SHORT
).
show
();
}
});
seatingback
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
Intent
intent
=
new
Intent
(
tempest
.
this
,
MainActivity
.
class
);
startActivity
(
intent
);
}
});
Button
plusone
=
findViewById
(
R
.
id
.
plusonehamlet5
);
Button
minusone
=
findViewById
(
R
.
id
.
minusonehamlet5
);
plusone
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
orderedtickets
++;
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
}
});
minusone
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
if
(
orderedtickets
>
0
)
{
orderedtickets
--;
displayorderedtickets
.
setText
(
String
.
valueOf
(
orderedtickets
));
}
}
});
}
private
boolean
bookingdone
(
String
playName
,
int
noticket
)
{
boolean
storebooking
=
database
.
bookinginput
(
playName
,
Integer
.
parseInt
(
String
.
valueOf
(
noticket
)));
return
storebooking
;
}
@Override
public
void
onItemSelected
(
AdapterView
<?>
adapterView
,
View
view
,
int
i
,
long
l
)
{
}
@Override
public
void
onNothingSelected
(
AdapterView
<?>
adapterView
)
{
}
}
PlaysRUs2/app/src/main/res/layout/activity_main.xml
View file @
2919e307
...
...
@@ -48,7 +48,7 @@
app:layout_constraintVertical_bias=
"0.19"
/>
<Button
android:id=
"@+id/
button10
"
android:id=
"@+id/
hamlet
"
android:layout_width=
"143dp"
android:layout_height=
"86dp"
android:text=
"Hamlet"
...
...
@@ -60,7 +60,7 @@
app:layout_constraintVertical_bias=
"0.19"
/>
<Button
android:id=
"@+id/
button11
"
android:id=
"@+id/
midsummer
"
android:layout_width=
"143dp"
android:layout_height=
"86dp"
android:text=
"A Midsummer Night's Dream"
...
...
@@ -72,7 +72,7 @@
app:layout_constraintVertical_bias=
"0.379"
/>
<Button
android:id=
"@+id/
button12
"
android:id=
"@+id/
oedipus
"
android:layout_width=
"143dp"
android:layout_height=
"86dp"
android:text=
"Oedipus the King"
...
...
@@ -84,7 +84,7 @@
app:layout_constraintVertical_bias=
"0.379"
/>
<Button
android:id=
"@+id/
button13
"
android:id=
"@+id/
tempest
"
android:layout_width=
"143dp"
android:layout_height=
"86dp"
android:text=
"The Tempest"
...
...
@@ -96,7 +96,7 @@
app:layout_constraintVertical_bias=
"0.556"
/>
<Button
android:id=
"@+id/
button14
"
android:id=
"@+id/
antigone
"
android:layout_width=
"143dp"
android:layout_height=
"86dp"
android:text=
"Antigone"
...
...
PlaysRUs2/app/src/main/res/layout/antigone.xml
0 → 100644
View file @
2919e307
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
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:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".antigone"
>
<TextView
android:id=
"@+id/displayplayname6"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Antigone"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"30sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.096"
/>
<TextView
android:id=
"@+id/textView38"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Choose your seating type"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.497"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.215"
/>
<TextView
android:id=
"@+id/textView39"
android:layout_width=
"173dp"
android:layout_height=
"39dp"
android:layout_marginTop=
"8dp"
android:text=
"How many tickets?"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.432"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.523"
tools:text=
"How many tickets?"
/>
<TextView
android:id=
"@+id/orderedticketshamlet6"
android:layout_width=
"54dp"
android:layout_height=
"38dp"
android:layout_marginTop=
"8dp"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"24sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.498"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.616"
/>
<TextView
android:id=
"@+id/textView40"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Full name"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.124"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.752"
tools:text=
"Fullname"
/>
<TextView
android:id=
"@+id/textView41"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Plays R Us"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.13"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.043"
/>
<Button
android:id=
"@+id/hamletconfirm6"
android:layout_width=
"143dp"
android:layout_height=
"59dp"
android:text=
"Confirm"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.764"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.909"
/>
<Button
android:id=
"@+id/hamletback6"
android:layout_width=
"143dp"
android:layout_height=
"59dp"
android:text=
"Back"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.152"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.909"
/>
<EditText
android:id=
"@+id/fullnamehamlet6"
android:layout_width=
"261dp"
android:layout_height=
"55dp"
android:ems=
"10"
android:inputType=
"textPersonName"
android:text=
"Input fullname"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.9"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.766"
/>
<Spinner
android:id=
"@+id/hamletseatingtype6"
android:layout_width=
"361dp"
android:layout_height=
"75dp"
android:contentDescription=
"Select seating type"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.49"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.289"
/>
<TextView
android:id=
"@+id/hamlettickets6"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#000000"
android:textSize=
"24sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.712"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.414"
/>
<TextView
android:id=
"@+id/venicetickets6"
android:layout_width=
"260dp"
android:layout_height=
"38dp"
android:text=
"Available Seating Tickets -"
android:textColor=
"#000000"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.105"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.418"
tools:text=
"Available Seating Tickets -"
/>
<Button
android:id=
"@+id/minusonehamlet6"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"- 1"
android:textSize=
"34sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.145"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.624"
/>
<Button
android:id=
"@+id/plusonehamlet6"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"+ 1"
android:textSize=
"34sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.804"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.624"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
PlaysRUs2/app/src/main/res/layout/filteredwheelchair.xml
View file @
2919e307
...
...
@@ -47,7 +47,7 @@
app:layout_constraintVertical_bias=
"0.19"
/>
<Button
android:id=
"@+id/
button4
"
android:id=
"@+id/
midsummerfilter
"
android:layout_width=
"143dp"
android:layout_height=
"86dp"
android:text=
"A Midsummer Night's Dream"
...
...
@@ -59,7 +59,7 @@
app:layout_constraintVertical_bias=
"0.19"
/>
<Button
android:id=
"@+id/
button5
"
android:id=
"@+id/
oedipusfilter
"
android:layout_width=
"143dp"
android:layout_height=
"86dp"
android:text=
"Oedipus the King"
...
...
@@ -71,7 +71,7 @@
app:layout_constraintVertical_bias=
"0.382"
/>
<Button
android:id=
"@+id/
button6
"
android:id=
"@+id/
tempestfilter
"
android:layout_width=
"143dp"
android:layout_height=
"86dp"
android:text=
"The Tempest"
...
...
PlaysRUs2/app/src/main/res/layout/hamlet.xml
0 → 100644
View file @
2919e307
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
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:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".hamlet"
>
<TextView
android:id=
"@+id/displayplayname2"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Hamlet"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"30sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.096"
/>
<TextView
android:id=
"@+id/textView14"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Choose your seating type"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.497"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.215"
/>
<TextView
android:id=
"@+id/textView15"
android:layout_width=
"173dp"
android:layout_height=
"39dp"
android:layout_marginTop=
"8dp"
android:text=
"How many tickets?"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.432"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.523"
tools:text=
"How many tickets?"
/>
<TextView
android:id=
"@+id/orderedticketshamlet2"
android:layout_width=
"54dp"
android:layout_height=
"38dp"
android:layout_marginTop=
"8dp"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"24sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.498"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.616"
/>
<TextView
android:id=
"@+id/textView19"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Full name"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.124"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.752"
tools:text=
"Fullname"
/>
<TextView
android:id=
"@+id/textView20"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Plays R Us"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.13"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.043"
/>
<Button
android:id=
"@+id/hamletconfirm2"
android:layout_width=
"143dp"
android:layout_height=
"59dp"
android:text=
"Confirm"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.764"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.909"
/>
<Button
android:id=
"@+id/hamletback2"
android:layout_width=
"143dp"
android:layout_height=
"59dp"
android:text=
"Back"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.152"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.909"
/>
<EditText
android:id=
"@+id/fullnamehamlet2"
android:layout_width=
"261dp"
android:layout_height=
"55dp"
android:ems=
"10"
android:inputType=
"textPersonName"
android:text=
"Input fullname"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.9"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.766"
/>
<Spinner
android:id=
"@+id/hamletseatingtype2"
android:layout_width=
"361dp"
android:layout_height=
"75dp"
android:contentDescription=
"Select seating type"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.49"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.289"
/>
<TextView
android:id=
"@+id/hamlettickets2"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#000000"
android:textSize=
"24sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.712"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.414"
/>
<TextView
android:id=
"@+id/venicetickets"
android:layout_width=
"260dp"
android:layout_height=
"38dp"
android:text=
"Available Seating Tickets -"
android:textColor=
"#000000"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.105"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.418"
tools:text=
"Available Seating Tickets -"
/>
<Button
android:id=
"@+id/minusonehamlet2"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"- 1"
android:textSize=
"34sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.145"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.624"
/>
<Button
android:id=
"@+id/plusonehamlet2"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"+ 1"
android:textSize=
"34sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.804"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.624"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
PlaysRUs2/app/src/main/res/layout/login.xml
View file @
2919e307
...
...
@@ -13,6 +13,7 @@
android:text=
"Submit"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.712"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.651"
/>
...
...
@@ -24,7 +25,7 @@
android:text=
"Back"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.
128
"
app:layout_constraintHorizontal_bias=
"0.
3
"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.651"
/>
...
...
@@ -65,9 +66,9 @@
android:textSize=
"24sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.
49
4"
app:layout_constraintHorizontal_bias=
"0.
61
4"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.1
25
"
app:layout_constraintVertical_bias=
"0.1
34
"
tools:text=
"Please insert your username and password"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
PlaysRUs2/app/src/main/res/layout/midsummer.xml
0 → 100644
View file @
2919e307
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
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:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".midsummer"
>
<TextView
android:id=
"@+id/displayplayname4"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"A Midsummer Night's Dream"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"30sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.096"
/>
<TextView
android:id=
"@+id/textView29"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Choose your seating type"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.497"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.215"
/>
<TextView
android:id=
"@+id/textView30"
android:layout_width=
"173dp"
android:layout_height=
"39dp"
android:layout_marginTop=
"8dp"
android:text=
"How many tickets?"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.432"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.523"
tools:text=
"How many tickets?"
/>
<TextView
android:id=
"@+id/orderedticketshamlet4"
android:layout_width=
"54dp"
android:layout_height=
"38dp"
android:layout_marginTop=
"8dp"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"24sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.498"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.616"
/>
<TextView
android:id=
"@+id/textView31"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Full name"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.124"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.752"
tools:text=
"Fullname"
/>
<TextView
android:id=
"@+id/textView32"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Plays R Us"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.13"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.043"
/>
<Button
android:id=
"@+id/hamletconfirm4"
android:layout_width=
"143dp"
android:layout_height=
"59dp"
android:text=
"Confirm"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.764"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.909"
/>
<Button
android:id=
"@+id/hamletback4"
android:layout_width=
"143dp"
android:layout_height=
"59dp"
android:text=
"Back"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.152"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.909"
/>
<EditText
android:id=
"@+id/fullnamehamlet4"
android:layout_width=
"261dp"
android:layout_height=
"55dp"
android:ems=
"10"
android:inputType=
"textPersonName"
android:text=
"Input fullname"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.9"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.766"
/>
<Spinner
android:id=
"@+id/hamletseatingtype4"
android:layout_width=
"361dp"
android:layout_height=
"75dp"
android:contentDescription=
"Select seating type"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.49"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.289"
/>
<TextView
android:id=
"@+id/hamlettickets4"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#000000"
android:textSize=
"24sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.712"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.414"
/>
<TextView
android:id=
"@+id/venicetickets4"
android:layout_width=
"260dp"
android:layout_height=
"38dp"
android:text=
"Available Seating Tickets -"
android:textColor=
"#000000"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.105"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.418"
tools:text=
"Available Seating Tickets -"
/>
<Button
android:id=
"@+id/minusonehamlet4"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"- 1"
android:textSize=
"34sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.145"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.624"
/>
<Button
android:id=
"@+id/plusonehamlet4"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"+ 1"
android:textSize=
"34sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.804"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.624"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
PlaysRUs2/app/src/main/res/layout/oedipus.xml
0 → 100644
View file @
2919e307
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
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:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".oedipus"
>
<TextView
android:id=
"@+id/displayplayname3"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Oedipus the King"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"30sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.096"
/>
<TextView
android:id=
"@+id/textView24"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Choose your seating type"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.497"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.215"
/>
<TextView
android:id=
"@+id/textView26"
android:layout_width=
"173dp"
android:layout_height=
"39dp"
android:layout_marginTop=
"8dp"
android:text=
"How many tickets?"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.432"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.523"
tools:text=
"How many tickets?"
/>
<TextView
android:id=
"@+id/orderedticketshamlet3"
android:layout_width=
"54dp"
android:layout_height=
"38dp"
android:layout_marginTop=
"8dp"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"24sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.498"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.616"
/>
<TextView
android:id=
"@+id/textView27"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Full name"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.124"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.752"
tools:text=
"Fullname"
/>
<TextView
android:id=
"@+id/textView28"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Plays R Us"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.13"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.043"
/>
<Button
android:id=
"@+id/hamletconfirm3"
android:layout_width=
"143dp"
android:layout_height=
"59dp"
android:text=
"Confirm"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.764"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.909"
/>
<Button
android:id=
"@+id/hamletback3"
android:layout_width=
"143dp"
android:layout_height=
"59dp"
android:text=
"Back"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.152"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.909"
/>
<EditText
android:id=
"@+id/fullnamehamlet3"
android:layout_width=
"261dp"
android:layout_height=
"55dp"
android:ems=
"10"
android:inputType=
"textPersonName"
android:text=
"Input fullname"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.9"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.766"
/>
<Spinner
android:id=
"@+id/hamletseatingtype3"
android:layout_width=
"361dp"
android:layout_height=
"75dp"
android:contentDescription=
"Select seating type"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.49"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.289"
/>
<TextView
android:id=
"@+id/hamlettickets3"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#000000"
android:textSize=
"24sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.712"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.414"
/>
<TextView
android:id=
"@+id/venicetickets3"
android:layout_width=
"260dp"
android:layout_height=
"38dp"
android:text=
"Available Seating Tickets -"
android:textColor=
"#000000"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.105"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.418"
tools:text=
"Available Seating Tickets -"
/>
<Button
android:id=
"@+id/minusonehamlet3"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"- 1"
android:textSize=
"34sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.145"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.624"
/>
<Button
android:id=
"@+id/plusonehamlet3"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"+ 1"
android:textSize=
"34sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.804"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.624"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
PlaysRUs2/app/src/main/res/layout/seating.xml
View file @
2919e307
...
...
@@ -52,7 +52,7 @@
tools:text=
"How many tickets?"
/>
<TextView
android:id=
"@+id/orderedtickets"
android:id=
"@+id/orderedtickets
hamlet
"
android:layout_width=
"54dp"
android:layout_height=
"38dp"
android:layout_marginTop=
"8dp"
...
...
@@ -97,7 +97,7 @@
app:layout_constraintVertical_bias=
"0.043"
/>
<Button
android:id=
"@+id/confirm"
android:id=
"@+id/
hamlet
confirm"
android:layout_width=
"143dp"
android:layout_height=
"59dp"
android:text=
"Confirm"
...
...
@@ -109,7 +109,7 @@
app:layout_constraintVertical_bias=
"0.909"
/>
<Button
android:id=
"@+id/
seating
back"
android:id=
"@+id/
hamlet
back"
android:layout_width=
"143dp"
android:layout_height=
"59dp"
android:text=
"Back"
...
...
@@ -121,7 +121,7 @@
app:layout_constraintVertical_bias=
"0.909"
/>
<EditText
android:id=
"@+id/fullname"
android:id=
"@+id/fullname
hamlet
"
android:layout_width=
"261dp"
android:layout_height=
"55dp"
android:ems=
"10"
...
...
@@ -135,7 +135,7 @@
app:layout_constraintVertical_bias=
"0.766"
/>
<Spinner
android:id=
"@+id/seatingtype"
android:id=
"@+id/
hamlet
seatingtype"
android:layout_width=
"361dp"
android:layout_height=
"75dp"
android:contentDescription=
"Select seating type"
...
...
@@ -147,7 +147,7 @@
app:layout_constraintVertical_bias=
"0.289"
/>
<TextView
android:id=
"@+id/
venice
tickets"
android:id=
"@+id/
hamlet
tickets"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#000000"
...
...
@@ -175,7 +175,7 @@
tools:text=
"Available Seating Tickets -"
/>
<Button
android:id=
"@+id/minusone"
android:id=
"@+id/minusone
hamlet
"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"- 1"
...
...
@@ -188,7 +188,7 @@
app:layout_constraintVertical_bias=
"0.624"
/>
<Button
android:id=
"@+id/plusone"
android:id=
"@+id/plusone
hamlet
"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"+ 1"
...
...
PlaysRUs2/app/src/main/res/layout/signup.xml
View file @
2919e307
...
...
@@ -55,7 +55,7 @@
android:text=
"Submit"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.
571
"
app:layout_constraintHorizontal_bias=
"0.
684
"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.651"
/>
...
...
@@ -67,7 +67,7 @@
android:text=
"Back"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.
184
"
app:layout_constraintHorizontal_bias=
"0.
281
"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.651"
/>
...
...
PlaysRUs2/app/src/main/res/layout/tempest.xml
0 → 100644
View file @
2919e307
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
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:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".tempest"
>
<TextView
android:id=
"@+id/displayplayname5"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"The Tempest"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"30sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.096"
/>
<TextView
android:id=
"@+id/textView33"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Choose your seating type"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.497"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.215"
/>
<TextView
android:id=
"@+id/textView35"
android:layout_width=
"173dp"
android:layout_height=
"39dp"
android:layout_marginTop=
"8dp"
android:text=
"How many tickets?"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.432"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.523"
tools:text=
"How many tickets?"
/>
<TextView
android:id=
"@+id/orderedticketshamlet5"
android:layout_width=
"54dp"
android:layout_height=
"38dp"
android:layout_marginTop=
"8dp"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"24sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.498"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.616"
/>
<TextView
android:id=
"@+id/textView36"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Full name"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.124"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.752"
tools:text=
"Fullname"
/>
<TextView
android:id=
"@+id/textView37"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:text=
"Plays R Us"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.13"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.043"
/>
<Button
android:id=
"@+id/hamletconfirm5"
android:layout_width=
"143dp"
android:layout_height=
"59dp"
android:text=
"Confirm"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.764"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.909"
/>
<Button
android:id=
"@+id/hamletback5"
android:layout_width=
"143dp"
android:layout_height=
"59dp"
android:text=
"Back"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.152"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.909"
/>
<EditText
android:id=
"@+id/fullnamehamlet5"
android:layout_width=
"261dp"
android:layout_height=
"55dp"
android:ems=
"10"
android:inputType=
"textPersonName"
android:text=
"Input fullname"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.9"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.766"
/>
<Spinner
android:id=
"@+id/hamletseatingtype5"
android:layout_width=
"361dp"
android:layout_height=
"75dp"
android:contentDescription=
"Select seating type"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.49"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.289"
/>
<TextView
android:id=
"@+id/hamlettickets5"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"#000000"
android:textSize=
"24sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.712"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.414"
/>
<TextView
android:id=
"@+id/venicetickets5"
android:layout_width=
"260dp"
android:layout_height=
"38dp"
android:text=
"Available Seating Tickets -"
android:textColor=
"#000000"
android:textSize=
"20sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.105"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.418"
tools:text=
"Available Seating Tickets -"
/>
<Button
android:id=
"@+id/minusonehamlet5"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"- 1"
android:textSize=
"34sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.145"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.624"
/>
<Button
android:id=
"@+id/plusonehamlet5"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"+ 1"
android:textSize=
"34sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.804"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.624"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ 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