Commit 2919e307 authored by sam.pople's avatar sam.pople

try8

parent 092fc9ea
......@@ -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>
......
......@@ -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 = "databaseone.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,7 +90,20 @@ public class Database extends SQLiteOpenHelper {
int rows = data.update("play", cv, "playName=?", new String[]{playName});
return rows > 0;
}
public int gettickets(String playName) {
public List<String> currentbookings() {
List<String> findbookings = new ArrayList<>();
SQLiteDatabase data = this.getReadableDatabase();
Cursor record = data.rawQuery("SELECT playName FROM booking", null);
if (record.moveToFirst()) {
do {
String playName = record.getString(record.getColumnIndexOrThrow("playName"));
findbookings.add(playName);
}
while (record.moveToNext());
}
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()) {
......@@ -101,20 +114,7 @@ public class Database extends SQLiteOpenHelper {
record.close();
return 0;
}
public List<String> currentbookings() {
List<String> findbookings = new ArrayList<>();
SQLiteDatabase data = this.getReadableDatabase();
Cursor record = data.rawQuery("SELECT playName FROM booking", null);
if (record.moveToFirst()) {
do {
String playName = record.getString(record.getColumnIndexOrThrow("playName"));
findbookings.add(playName);
}
while (record.moveToNext());
}
record.close();
return findbookings;
}
}
......
......@@ -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) {
......
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) {
}
}
......@@ -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() {
......
......@@ -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) {
......
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) {
}
}
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) {
}
}
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) {
}
}
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.orderedticketshamlet);
fullName = (EditText) findViewById(R.id.fullnamehamlet);
displayplayname = findViewById(R.id.displayplayname);
String playName = getIntent().getStringExtra("playName");
Spinner seatingtype = (Spinner) findViewById(R.id.seatingtype);
Spinner seatingtype = (Spinner) findViewById(R.id.hamletseatingtype);
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.seatingback);
Button confirm = (Button) findViewById(R.id.hamletconfirm);
Button seatingback = (Button) findViewById(R.id.hamletback);
displayorderedtickets.setText(String.valueOf(orderedtickets));
Intent intent = getIntent();
database = new Database(this);
TextView displaytickets = findViewById(R.id.venicetickets);
// int ticketsavail = database.gettickets(playnameforthis);
int ticketsavail = 17;
displaytickets.setText(String.valueOf(ticketsavail));
TextView displaytickets = findViewById(R.id.hamlettickets);
String playnameforthis = "The Merchant of Venice";
int ticketsthere = database.gettickets(playnameforthis);
displaytickets.setText(String.valueOf(ticketsthere));
confirm.setOnClickListener(v -> {
TextView displayorderedtickets = findViewById(R.id.orderedtickets);
TextView displayorderedtickets = findViewById(R.id.orderedticketshamlet);
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));
}
}
......
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) {
}
}
......@@ -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"
......
<?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
......@@ -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"
......
<?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
......@@ -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.494"
app:layout_constraintHorizontal_bias="0.614"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.125"
app:layout_constraintVertical_bias="0.134"
tools:text="Please insert your username and password" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?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
<?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
......@@ -52,7 +52,7 @@
tools:text="How many tickets?" />
<TextView
android:id="@+id/orderedtickets"
android:id="@+id/orderedticketshamlet"
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/hamletconfirm"
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/seatingback"
android:id="@+id/hamletback"
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/fullnamehamlet"
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/hamletseatingtype"
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/venicetickets"
android:id="@+id/hamlettickets"
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/minusonehamlet"
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/plusonehamlet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="+ 1"
......
......@@ -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" />
......
<?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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment