Commit 2be71214 authored by Antony Adewunmi-Jones's avatar Antony Adewunmi-Jones

test

parent 6e6c3983
<project version="4"> <project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" /> <component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
android:label="@string/app_name" android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.TheatreTheme" android:theme="@style/Theme.DatabaseExample"
tools:targetApi="31"> tools:targetApi="31">
<activity <activity
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
</intent-filter> </intent-filter>
</activity> </activity>
<activity <activity
android:name=".CreateAcc" android:name=".CreateAcc"
android:exported="false"> android:exported="false">
...@@ -64,6 +63,57 @@ ...@@ -64,6 +63,57 @@
android:value="" /> android:value="" />
</activity> </activity>
<activity
android:name=".show1"
android:exported="false">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".show2"
android:exported="false">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".show3"
android:exported="false">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".show4"
android:exported="false">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".show5"
android:exported="false">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
</application> </application>
</manifest> </manifest>
\ No newline at end of file
...@@ -5,6 +5,7 @@ import android.content.Intent; ...@@ -5,6 +5,7 @@ import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.view.View; import android.view.View;
import android.widget.EditText; import android.widget.EditText;
import android.widget.Toast;
import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
...@@ -28,21 +29,41 @@ public class CreateAcc extends AppCompatActivity { ...@@ -28,21 +29,41 @@ public class CreateAcc extends AppCompatActivity {
return true; return true;
} }
public void registerBtn(View view) public void registerBtn(View view) {
{
this._addNewUser(); this._addNewUser();
} }
private void _addNewUser() private void _addNewUser() {
{
DBConnector connector = new DBConnector(this, null); DBConnector connector = new DBConnector(this, null);
EditText name = findViewById(R.id.registerNameText); EditText name = findViewById(R.id.registerNameText);
EditText username = findViewById(R.id.registerUsernameText); EditText username = findViewById(R.id.registerUsernameText);
EditText password = findViewById(R.id.registerPasswordText); EditText password = findViewById(R.id.registerPasswordText);
connector.addNewUser(name.getText().toString(), username.getText().toString(), password.getText().toString()); //CHECK IF INPUT IS BLANK, IF SO TOAST
String namestr = name.getText().toString();
String userstr = username.getText().toString();
String passstr = password.getText().toString();
if (namestr.equals("")) {
Toast.makeText(this, "Name is blank, please try again", Toast.LENGTH_LONG).show();
} else if (userstr.equals("")) {
Toast.makeText(this, "Username is blank, please try again", Toast.LENGTH_LONG).show();
} else if (passstr.equals("")) {
Toast.makeText(this, "Password is blank, please try again", Toast.LENGTH_LONG).show();
} else {
//CHECK IF USERNAME IS TAKE, IF SO TOAST
boolean success = connector.checkUsername(username.getText().toString());
if (success) {
Toast.makeText(this, "Username taken", Toast.LENGTH_LONG).show();
} else {
connector.addNewUser(name.getText().toString(), username.getText().toString(), password.getText().toString());
Intent intent = new Intent(this, done.class);
startActivity(intent);
}
}
Intent intent = new Intent(this, done.class);
startActivity(intent);
} }
} }
\ No newline at end of file
...@@ -69,4 +69,25 @@ public class DBConnector extends SQLiteOpenHelper { ...@@ -69,4 +69,25 @@ public class DBConnector extends SQLiteOpenHelper {
return result; return result;
} }
public boolean checkUsername(String username) {
boolean result = false;
String query = "SELECT * FROM " + TABLE_USERS + " WHERE " + COLUMN_USERNAME + " = \"" + username +"\"";
SQLiteDatabase db = this.getWritableDatabase();
Cursor cursor = db.rawQuery(query, null);
if (cursor.moveToFirst()){
if (cursor.getString(2).equals(username))
result = true;
else
result = false;
}
cursor.close();
db.close();
return result;
}
} }
...@@ -3,6 +3,7 @@ package com.example.bookingapp; ...@@ -3,6 +3,7 @@ package com.example.bookingapp;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.view.View; import android.view.View;
import android.widget.Toast;
import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
...@@ -40,7 +41,31 @@ public class MainActivity extends AppCompatActivity { ...@@ -40,7 +41,31 @@ public class MainActivity extends AppCompatActivity {
Intent intent = new Intent(this, done.class); Intent intent = new Intent(this, done.class);
startActivity(intent); startActivity(intent);
} }
public void show1Btn(View view) {
Intent intent = new Intent(this, show1.class);
Toast.makeText(this, "MOVE TO TEMPEST", Toast.LENGTH_SHORT).show();
startActivity(intent);
}
public void show2Btn(View view) {
Intent intent = new Intent(this, show2.class);
Toast.makeText(this, "MOVE TO MIDSUMMER", Toast.LENGTH_SHORT).show();
startActivity(intent);
}
public void show3Btn(View view) {
Intent intent = new Intent(this, show3.class);
Toast.makeText(this, "MOVE TO ROMEO", Toast.LENGTH_SHORT).show();
startActivity(intent);
}
public void show4Btn(View view) {
Intent intent = new Intent(this, show4.class);
Toast.makeText(this, "MOVE TO HAMLET", Toast.LENGTH_SHORT).show();
startActivity(intent);
}
public void show5Btn(View view) {
Intent intent = new Intent(this, show5.class);
Toast.makeText(this, "MOVE TO RICHARD III", Toast.LENGTH_SHORT).show();
startActivity(intent);
}
......
...@@ -7,6 +7,9 @@ import android.text.Spanned; ...@@ -7,6 +7,9 @@ import android.text.Spanned;
import android.text.method.LinkMovementMethod; import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan; import android.text.style.ClickableSpan;
import android.view.View; import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText; import android.widget.EditText;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
...@@ -26,22 +29,92 @@ public class done extends AppCompatActivity { ...@@ -26,22 +29,92 @@ public class done extends AppCompatActivity {
setContentView(R.layout.done); setContentView(R.layout.done);
listingModel listing = new listingModel("Example Show", "7:00 PM", 100.0, 5); listingModel listing = new listingModel("Example Show", "7:00 PM", 100.0, 5);
listingTextView = findViewById(R.id.listingTextView); //listingTextView = findViewById(R.id.listingTextView);
listingTextView.setText(listing.toString()); //listingTextView.setText(listing.toString());
ActionBar actionBar = getSupportActionBar(); ActionBar actionBar = getSupportActionBar();
actionBar.setHomeButtonEnabled(true); actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setDisplayHomeAsUpEnabled(true);
//a boolean variable 'isVisible' for "you have no bookings" textview
boolean show1isVisible = true; // could be true or false
boolean show2isVisible = true; // could be true or false
boolean show3isVisible = true; // could be true or false
boolean show4isVisible = true; // could be true or false
boolean show5isVisible = true; // could be true or false
boolean filter = false; // initial value
//Button that you want to show or hide based on 'isVisible'
Button button1 = findViewById(R.id.button1);
Button button2 = findViewById(R.id.button2);
Button button3 = findViewById(R.id.button3);
Button button4 = findViewById(R.id.button4);
Button button5 = findViewById(R.id.button5);
CheckBox filterBox = findViewById(R.id.checkBox);
/*
if (show1isVisible) {
button1.setVisibility(View.VISIBLE);
} else {
button1.setVisibility(View.GONE);
}
*/
filterBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
Button button1 = findViewById(R.id.button1);
Button button2 = findViewById(R.id.button2);
Button button3 = findViewById(R.id.button3);
Button button4 = findViewById(R.id.button4);
Button button5 = findViewById(R.id.button5);
isChecked = isChecked;
if (isChecked) {
// if checkbox is checked, make the button disappear
button1.setVisibility(View.GONE);
button3.setVisibility(View.GONE);
button4.setVisibility(View.GONE);
} else {
// if checkbox is unchecked, make the button visible
button1.setVisibility(View.VISIBLE);
button3.setVisibility(View.VISIBLE);
button4.setVisibility(View.VISIBLE);
}
}
});
} }
public void myBookingsBtn(View view) { public void myBookingsBtn(View view) {
Intent intent = new Intent(done.this, myBookings.class); Intent intent = new Intent(done.this, myBookings.class);
startActivity(intent); startActivity(intent);
} }
public void show1Btn(View view) {
public void testClick(View view){ Intent intent = new Intent(done.this, show1.class);
Toast.makeText(this, "button click", Toast.LENGTH_SHORT).show(); Toast.makeText(this, "MOVE TO TEMPEST", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(done.this, myBookings.class); startActivity(intent);
}
public void show2Btn(View view) {
Intent intent = new Intent(done.this, show2.class);
Toast.makeText(this, "MOVE TO MIDSUMMER", Toast.LENGTH_SHORT).show();
startActivity(intent);
}
public void show3Btn(View view) {
Intent intent = new Intent(done.this, show3.class);
Toast.makeText(this, "MOVE TO ROMEO", Toast.LENGTH_SHORT).show();
startActivity(intent);
}
public void show4Btn(View view) {
Intent intent = new Intent(done.this, show4.class);
Toast.makeText(this, "MOVE TO HAMLET", Toast.LENGTH_SHORT).show();
startActivity(intent);
}
public void show5Btn(View view) {
Intent intent = new Intent(done.this, show5.class);
Toast.makeText(this, "MOVE TO RICHARD III", Toast.LENGTH_SHORT).show();
startActivity(intent); startActivity(intent);
} }
......
...@@ -2,7 +2,9 @@ package com.example.bookingapp; ...@@ -2,7 +2,9 @@ package com.example.bookingapp;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.os.Trace;
import android.view.View; import android.view.View;
import android.widget.TextView;
import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
...@@ -17,6 +19,22 @@ public class myBookings extends AppCompatActivity { ...@@ -17,6 +19,22 @@ public class myBookings extends AppCompatActivity {
ActionBar actionBar = getSupportActionBar(); ActionBar actionBar = getSupportActionBar();
actionBar.setHomeButtonEnabled(true); actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setDisplayHomeAsUpEnabled(true);
//a boolean variable 'isVisible' for "you have no bookings" textview
boolean isVisible = true; // could be true or false
//TextView that you want to show or hide based on 'isVisible'
TextView noBookingsText = (TextView) findViewById(R.id.textViewId);
//statement to show or hide the TextView
if (isVisible) {
noBookingsText.setVisibility(View.VISIBLE);
} else {
noBookingsText.setVisibility(View.GONE);
// or textView.setVisibility(View.GONE); (depending on your requirement)
}
} }
public void todoneBtn(View view) public void todoneBtn(View view)
......
package com.example.bookingapp;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
public class show1 extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.show1);
ActionBar actionBar = getSupportActionBar();
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
}
}
\ No newline at end of file
package com.example.bookingapp;
import android.os.Bundle;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
public class show2 extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.show2);
ActionBar actionBar = getSupportActionBar();
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
}
}
\ No newline at end of file
package com.example.bookingapp;
import android.os.Bundle;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
public class show3 extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.show3);
ActionBar actionBar = getSupportActionBar();
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
}
}
\ No newline at end of file
package com.example.bookingapp;
import android.os.Bundle;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
public class show4 extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.show4);
ActionBar actionBar = getSupportActionBar();
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
}
}
\ No newline at end of file
package com.example.bookingapp;
import android.os.Bundle;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
public class show5 extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.show5);
ActionBar actionBar = getSupportActionBar();
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
}
}
\ No newline at end of file
...@@ -10,22 +10,74 @@ ...@@ -10,22 +10,74 @@
tools:context=".done"> tools:context=".done">
<Button
android:id="@+id/button5"
android:layout_width="326dp"
android:layout_height="53dp"
android:layout_marginStart="42dp"
android:layout_marginTop="30dp"
android:layout_marginEnd="43dp"
android:onClick="show5Btn"
android:text="Richard III"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button4" />
<Button
android:id="@+id/button2"
android:layout_width="326dp"
android:layout_height="53dp"
android:layout_marginStart="43dp"
android:layout_marginTop="30dp"
android:layout_marginEnd="42dp"
android:onClick="show2Btn"
android:text="A Midsummer Nights Dream"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button1" />
<Button
android:id="@+id/button3"
android:layout_width="326dp"
android:layout_height="53dp"
android:layout_marginStart="42dp"
android:layout_marginTop="30dp"
android:layout_marginEnd="43dp"
android:onClick="show3Btn"
android:text="Romeo and Juliet"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button2" />
<Button
android:id="@+id/button4"
android:layout_width="326dp"
android:layout_height="53dp"
android:layout_marginStart="42dp"
android:layout_marginTop="30dp"
android:layout_marginEnd="43dp"
android:onClick="show4Btn"
android:text="Hamlet"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button3" />
<Button <Button
android:id="@+id/button" android:id="@+id/button6"
android:layout_width="172dp" android:layout_width="172dp"
android:layout_height="62dp" android:layout_height="62dp"
android:layout_marginStart="38dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:layout_marginEnd="16dp" android:layout_marginEnd="33dp"
android:capitalize="characters" android:capitalize="characters"
android:fontFamily="sans-serif-black" android:fontFamily="sans-serif-black"
android:onClick="myBookingsBtn" android:onClick="myBookingsBtn"
android:text="My Bookings" android:text="My Bookings"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/textView5"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<TextView <TextView
android:id="@+id/textView5" android:id="@+id/textView5"
android:layout_width="116dp" android:layout_width="116dp"
...@@ -38,17 +90,34 @@ ...@@ -38,17 +90,34 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<TextView <Button
android:id="@+id/listingTextView" android:id="@+id/button1"
android:layout_width="243dp" android:layout_width="326dp"
android:layout_height="80dp" android:layout_height="53dp"
android:layout_marginStart="68dp" android:layout_marginStart="42dp"
android:layout_marginEnd="68dp" android:layout_marginTop="83dp"
android:layout_marginBottom="464dp" android:layout_marginEnd="43dp"
android:onClick="show1Btn"
android:text="The Tempest"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button6" />
<CheckBox
android:id="@+id/checkBox"
android:layout_width="159dp"
android:layout_height="44dp"
android:layout_marginStart="139dp"
android:layout_marginTop="31dp"
android:layout_marginEnd="140dp"
android:text="Tickets Available "
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.469" app:layout_constraintHorizontal_bias="0.481"
app:layout_constraintStart_toStartOf="parent" /> app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.865" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
...@@ -32,5 +32,17 @@ ...@@ -32,5 +32,17 @@
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textViewId"
android:layout_width="149dp"
android:layout_height="21dp"
android:layout_marginStart="131dp"
android:layout_marginTop="106dp"
android:layout_marginEnd="131dp"
android:text="You have No bookings"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/button" />
</androidx.constraintlayout.widget.ConstraintLayout> </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=".show1">
<TextView
android:id="@+id/textView13"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="124dp"
android:layout_marginTop="32dp"
android:layout_marginEnd="124dp"
android:fontFamily="sans-serif-black"
android:text="Date: 08/09 Time: 7PM"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView10" />
<TextView
android:id="@+id/textView5"
android:layout_width="102dp"
android:layout_height="30dp"
android:layout_marginStart="131dp"
android:layout_marginTop="41dp"
android:layout_marginEnd="132dp"
android:layout_marginBottom="660dp"
android:fontFamily="sans-serif-black"
android:text="TEMPEST"
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/imageView"
android:layout_width="321dp"
android:layout_height="202dp"
android:layout_marginStart="69dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="70dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.489"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView5"
app:srcCompat="@drawable/tempest" />
<TextView
android:id="@+id/textView10"
android:layout_width="341dp"
android:layout_height="123dp"
android:layout_marginStart="35dp"
android:layout_marginTop="23dp"
android:layout_marginEnd="35dp"
android:gravity="center"
android:text="&quot;The Tempest&quot; by William Shakespeare is a compelling play set on a remote island, where Prospero, a sorcerer, weaves a tale of forgiveness, revenge, and the enchanting influence of art. The interplay between characters, both human and supernatural, explores themes of transformation and human nature."
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView" />
</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=".show2">
<TextView
android:id="@+id/textView12"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="130dp"
android:layout_marginTop="50dp"
android:layout_marginEnd="124dp"
android:fontFamily="sans-serif-black"
android:text="Date: 08/09 Time: 7PM"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView9" />
<TextView
android:id="@+id/textView5"
android:layout_width="135dp"
android:layout_height="31dp"
android:layout_marginTop="52dp"
android:layout_marginEnd="136dp"
android:fontFamily="sans-serif-black"
android:text="MIDSUMMER"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/imageView4"
android:layout_width="322dp"
android:layout_height="196dp"
android:layout_marginStart="62dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="63dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView5"
app:srcCompat="@drawable/midsummer" />
<TextView
android:id="@+id/textView9"
android:layout_width="310dp"
android:layout_height="130dp"
android:layout_marginStart="57dp"
android:layout_marginTop="36dp"
android:layout_marginEnd="44dp"
android:gravity="center"
android:text=" &quot;A Midsummer Night's Dream&quot; by William Shakespeare is a comedic play where the lives of lovers, fairies, and actors collide in a magical forest, leading to amusing misunderstandings and highlighting themes of love, illusion, and the enchanting nature of dreams."
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView4" />
</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=".show3">
<TextView
android:id="@+id/textView11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="128dp"
android:layout_marginTop="24dp"
android:layout_marginEnd="127dp"
android:fontFamily="sans-serif-black"
android:text="Date: 08/09 Time: 7PM"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView8" />
<TextView
android:id="@+id/textView5"
android:layout_width="191dp"
android:layout_height="30dp"
android:layout_marginStart="112dp"
android:layout_marginTop="36dp"
android:layout_marginEnd="108dp"
android:fontFamily="sans-serif-black"
android:text="ROMEO AND JULIET"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/imageView5"
android:layout_width="352dp"
android:layout_height="220dp"
android:layout_marginStart="29dp"
android:layout_marginTop="19dp"
android:layout_marginEnd="30dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView5"
app:srcCompat="@drawable/romeo" />
<TextView
android:id="@+id/textView8"
android:layout_width="317dp"
android:layout_height="176dp"
android:layout_marginStart="48dp"
android:layout_marginTop="19dp"
android:layout_marginEnd="47dp"
android:gravity="center"
android:text="&quot;Romeo and Juliet&quot; is a renowned tragedy by William Shakespeare, portraying the intense love between Romeo and Juliet, members of feuding families. Their forbidden romance and tragic misunderstandings lead to a heart-wrenching conclusion, exploring themes of love, fate, and family conflict."
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView5" />
</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=".show4">
<TextView
android:id="@+id/textView5"
android:layout_width="82dp"
android:layout_height="33dp"
android:layout_marginStart="131dp"
android:layout_marginTop="34dp"
android:layout_marginEnd="132dp"
android:layout_marginBottom="664dp"
android:fontFamily="sans-serif-black"
android:text="HAMLET"
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="69dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="70dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView5"
app:srcCompat="@drawable/hamlet" />
<TextView
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="128dp"
android:layout_marginTop="32dp"
android:layout_marginEnd="128dp"
android:fontFamily="sans-serif-black"
android:text="Date: 07/09 Time: 6:30PM"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView7" />
<TextView
android:id="@+id/textView7"
android:layout_width="331dp"
android:layout_height="166dp"
android:layout_marginStart="40dp"
android:layout_marginTop="18dp"
android:layout_marginEnd="40dp"
android:gravity="center"
android:text="&quot;Hamlet&quot; by William Shakespeare is a tragedy centered around Prince Hamlet of Denmark, who seeks to avenge his father's murder by his uncle. Filled with themes of revenge, deception, and mortality, the play delves into Hamlet's inner struggles and features iconic soliloquies that reflect his philosophical ponderings. The story unfolds tragically, exploring human psychology and the consequences of inaction."
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView" />
</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=".show5">
<TextView
android:id="@+id/textView5"
android:layout_width="120dp"
android:layout_height="32dp"
android:layout_marginStart="147dp"
android:layout_marginTop="36dp"
android:layout_marginEnd="144dp"
android:fontFamily="sans-serif-black"
android:text="RICHARD III"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/imageView7"
android:layout_width="306dp"
android:layout_height="202dp"
android:layout_marginStart="53dp"
android:layout_marginTop="31dp"
android:layout_marginEnd="53dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView5"
app:srcCompat="@drawable/richard" />
<TextView
android:id="@+id/textView4"
android:layout_width="332dp"
android:layout_height="162dp"
android:layout_marginStart="38dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="41dp"
android:gravity="center"
android:text="Richard III is a Shakespearean historical play that follows the ruthless ascent and eventual downfall of Richard III, the Duke of Gloucester, as he schemes and eliminates rivals to seize the English throne during the Wars of the Roses. The play delves into themes of ambition, power, manipulation, and the psychological complexities of its central character, Richard, culminating in the climactic Battle of Bosworth."
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView7" />
<TextView
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="128dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="128dp"
android:text="Date: 08/09 Time: 7PM"
android:fontFamily="sans-serif-black"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView4" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<resources xmlns:tools="http://schemas.android.com/tools"> <resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. --> <!-- Base application theme. -->
<style name="Theme.TheatreTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar"> <style name="Theme.DatabaseExample" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. --> <!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item> <item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item> <item name="colorPrimaryVariant">@color/purple_700</item>
......
<resources> <resources>
<string name="app_name">""</string> <string name="app_name">""</string>
<string name="show_1">SHOW 1</string>
</resources> </resources>
\ 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