Commit 31b097d2 authored by sam.pople's avatar sam.pople

correction

parent 8fb1d5d3
......@@ -11,9 +11,9 @@ import java.util.ArrayList;
import java.util.List;
public class Database extends SQLiteOpenHelper {
public static final String databasename = "totestthedatabase2.db";
public static final String databasename = "totestthedatabase4.db";
public Database(@Nullable Context cont) {
super(cont, "totestthedatabase2.db", null, 1);
super(cont, "totestthedatabase4.db", null, 1);
}
@Override
public void onCreate(SQLiteDatabase data) {
......
......@@ -51,7 +51,7 @@ public class midsummer extends AppCompatActivity implements AdapterView.OnItemSe
displaytickets.setText(String.valueOf(ticketsthere));
//This ensures the customer doesn't order too many tickets or too few
confirm.setOnClickListener(v -> {
TextView displayorderedtickets = findViewById(R.id.orderedticketshamlet2);
TextView displayorderedtickets = findViewById(R.id.orderedticketshamlet4);
int orderedtickets = Integer.parseInt(displayorderedtickets.getText().toString());
if (orderedtickets > 0) {
......
......@@ -51,7 +51,7 @@ public class tempest extends AppCompatActivity implements AdapterView.OnItemSele
displaytickets.setText(String.valueOf(ticketsthere));
//This ensures that the number of ordered tickets is acceptable
confirm.setOnClickListener(v -> {
TextView displayorderedtickets = findViewById(R.id.orderedticketshamlet3);
TextView displayorderedtickets = findViewById(R.id.orderedticketshamlet5);
int orderedtickets = Integer.parseInt(displayorderedtickets.getText().toString());
if (orderedtickets > 0) {
......
......@@ -52,17 +52,18 @@
<TextView
android:id="@+id/textView9"
android:layout_width="367dp"
android:layout_height="39dp"
android:layout_width="339dp"
android:layout_height="36dp"
android:layout_marginTop="8dp"
android:text="Venue - Merchant Adventurer's Hall, York"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textSize="19sp"
android:textSize="18sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.569"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.308"
app:layout_constraintVertical_bias="0.307"
tools:text="Venue - Merchant Adventurer's Hall, York" />
<TextView
......@@ -159,26 +160,26 @@
<Button
android:id="@+id/back"
android:layout_width="143dp"
android:layout_height="60dp"
android:layout_width="121dp"
android:layout_height="49dp"
android:text="Back"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.194"
app:layout_constraintHorizontal_bias="0.214"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.831" />
app:layout_constraintVertical_bias="0.823" />
<Button
android:id="@+id/bookdetails"
android:layout_width="143dp"
android:layout_height="59dp"
android:layout_width="117dp"
android:layout_height="48dp"
android:text="Book"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.895"
app:layout_constraintHorizontal_bias="0.807"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.83" />
app:layout_constraintVertical_bias="0.823" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -8,8 +8,8 @@
<TextView
android:id="@+id/displayplayname4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="358dp"
android:layout_height="74dp"
android:layout_marginTop="8dp"
android:text="A Midsummer Night's Dream"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
......@@ -82,8 +82,8 @@
<Button
android:id="@+id/hamletconfirm4"
android:layout_width="143dp"
android:layout_height="59dp"
android:layout_width="127dp"
android:layout_height="48dp"
android:text="Confirm"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
......@@ -94,12 +94,12 @@
<Button
android:id="@+id/hamletback4"
android:layout_width="143dp"
android:layout_height="59dp"
android:layout_width="113dp"
android:layout_height="46dp"
android:text="Back"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.152"
app:layout_constraintHorizontal_bias="0.157"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.909" />
......@@ -124,7 +124,7 @@
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.773"
app:layout_constraintHorizontal_bias="0.756"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.414" />
......
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