Commit b30b6153 authored by jinny.wilkin's avatar jinny.wilkin

Submission

parents
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
# Default ignored files
/shelf/
/workspace.xml
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<JetCodeStyleSettings>
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</JetCodeStyleSettings>
<codeStyleSettings language="XML">
<option name="FORCE_REARRANGE_MODE" value="1" />
<indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="4" />
</indentOptions>
<arrangement>
<rules>
<section>
<rule>
<match>
<AND>
<NAME>xmlns:android</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>xmlns:.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*:id</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*:name</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>name</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>style</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
<order>ANDROID_ATTRIBUTE_ORDER</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>.*</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
</rules>
</arrangement>
</codeStyleSettings>
<codeStyleSettings language="kotlin">
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</codeStyleSettings>
</code_scheme>
</component>
\ No newline at end of file
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
</state>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="11" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="GRADLE" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RenderSettings">
<option name="showDecorations" value="true" />
</component>
</project>
\ No newline at end of file
/build
\ No newline at end of file
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
android {
namespace 'com.ysj.playbill'
compileSdk 33
defaultConfig {
applicationId "com.ysj.playbill"
minSdk 26
targetSdk 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
viewBinding true
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.10.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.9.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.annotation:annotation:1.6.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1'
implementation 'androidx.recyclerview:recyclerview:1.3.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.core:core:1.10.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
def room_version = "2.5.1"
implementation "androidx.sqlite:sqlite:2.3.1"
}
\ No newline at end of file
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
\ No newline at end of file
package com.ysj.playbill
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.ysj.playbill", appContext.packageName)
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.PlayBill"
tools:targetApi="31">
<activity
android:name=".booking_form"
android:exported="false" />
<activity
android:name=".Bookings"
android:exported="false" />
<activity
android:name=".search"
android:exported="true" />
<activity
android:name=".TMOV"
android:exported="true" />
<activity
android:name=".AMND"
android:exported="true" />
<activity
android:name=".ANTI"
android:exported="true" />
<activity
android:name=".HAM"
android:exported="true" />
<activity
android:name=".OtK"
android:exported="true" />
<activity
android:name=".TEMP"
android:exported="true" />
<activity
android:name=".Register"
android:exported="true" />
<activity
android:name=".LoginPage"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:exported="true" />
</application>
</manifest>
\ No newline at end of file
package com.ysj.playbill;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.widget.Button;
import android.widget.Toast;
import com.google.android.material.bottomnavigation.BottomNavigationView;
public class AMND extends AppCompatActivity implements View.OnClickListener{
private Button B1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_amnd);
B1 = findViewById(R.id.show1Button);
B1.setOnClickListener((View.OnClickListener)this);
BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_navigation);
bottomNavigationView.setOnItemSelectedListener(new BottomNavigationView.OnItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.home:
Toast.makeText(AMND.this, "Home", Toast.LENGTH_SHORT).show();
Intent homeIntent = new Intent(AMND.this, MainActivity.class);
startActivity(homeIntent);
break;
case R.id.search:
Toast.makeText(AMND.this, "Listings", Toast.LENGTH_SHORT).show();
Intent listIntent = new Intent(AMND.this, search.class);
startActivity(listIntent);
break;
case R.id.booking:
Toast.makeText(AMND.this, "Bookings", Toast.LENGTH_SHORT).show();
Intent bookingIntent = new Intent(AMND.this, Bookings.class);
startActivity(bookingIntent);
break;
}
return true;
}
});
}
@Override
public void onClick(View v) {
Intent i;
switch (v.getId()) {
case R.id.show3Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 3;
startActivity(i);
break;
}
}
}
\ No newline at end of file
package com.ysj.playbill;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.google.android.material.bottomnavigation.BottomNavigationView;
public class ANTI extends AppCompatActivity implements View.OnClickListener{
private Button B1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_antigone);
B1 = findViewById(R.id.show1Button);
B1.setOnClickListener((View.OnClickListener)this);
BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_navigation);
bottomNavigationView.setOnItemSelectedListener(new BottomNavigationView.OnItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.home:
Toast.makeText(ANTI.this, "Home", Toast.LENGTH_SHORT).show();
Intent homeIntent = new Intent(ANTI.this, MainActivity.class);
startActivity(homeIntent);
break;
case R.id.search:
Toast.makeText(ANTI.this, "Listings", Toast.LENGTH_SHORT).show();
Intent listIntent = new Intent(ANTI.this, search.class);
startActivity(listIntent);
break;
case R.id.booking:
Toast.makeText(ANTI.this, "Bookings", Toast.LENGTH_SHORT).show();
Intent bookingIntent = new Intent(ANTI.this, Bookings.class);
startActivity(bookingIntent);
break;
}
return true;
}
});
}
@Override
public void onClick(View v) {
Intent i;
switch (v.getId()) {
case R.id.show6Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 6;
startActivity(i);
break;
}
}
}
\ No newline at end of file
package com.ysj.playbill;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.widget.TextView;
import android.widget.Toast;
import com.google.android.material.bottomnavigation.BottomNavigationView;
public class Bookings extends AppCompatActivity {
private TextView textView;
DatabaseHelper dbHelp = new DatabaseHelper(this);
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_bookings);
textView = findViewById(R.id.bookings);
int count = dbHelp.ticketNumber();
int i = 0;
while(count>i){
i += 1;
String ticketsBought = dbHelp.retrieveData(i);
textView.append(ticketsBought);
}
BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_navigation);
bottomNavigationView.setOnItemSelectedListener(new BottomNavigationView.OnItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.home:
Toast.makeText(Bookings.this, "Home", Toast.LENGTH_SHORT).show();
Intent homeIntent = new Intent(Bookings.this, MainActivity.class);
startActivity(homeIntent);
break;
case R.id.search:
Toast.makeText(Bookings.this, "Listings", Toast.LENGTH_SHORT).show();
Intent listIntent = new Intent(Bookings.this, search.class);
startActivity(listIntent);
break;
case R.id.booking:
Toast.makeText(Bookings.this, "Bookings", Toast.LENGTH_SHORT).show();
Intent bookingIntent = new Intent(Bookings.this, Bookings.class);
startActivity(bookingIntent);
break;
}
return true;
}
});
}
}
\ No newline at end of file
package com.ysj.playbill;
import static android.database.sqlite.SQLiteDatabase.openOrCreateDatabase;
import android.annotation.SuppressLint;
import android.content.ContentValues;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.SQLException;
import android.content.Context;
import android.util.Log;
import android.database.Cursor;
import android.widget.Toast;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class DatabaseHelper extends SQLiteOpenHelper {
@SuppressLint("SdCardPath")
public static String DBName = "PlayBillDB.db";
public static final int DBVersion = 1;
private static SQLiteDatabase pbDB;
private final Context context;
static int userID;
static int showID;
static int ticketID;
public DatabaseHelper(Context context){
super(context, DBName, null, DBVersion);
this.context = context;
}
@Override
public void onCreate(SQLiteDatabase db){
//TODO onCreate
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldV, int newV){
//TODO onUpgrade
}
@Override
public synchronized void close(){
if(pbDB!=null){
pbDB.close();
}
super.close();
}
public void createDB(){
File f = new File (context.getDatabasePath(DBName).toString());
if(f.exists()){
return;
}
if (!f.getParentFile().exists()){
f.getParentFile().mkdirs();
}
pbDB = openOrCreateDatabase(f, null);
Log.i("OpenDB", "done");
//this next bit is really messy but I built a database and then could not for the life of me
//get it into the app and working, so we stripped it down to the SQL and we're building it
//here - it shouldn't recreate this db every time the app loads, but realistically
//in production, we'd be using a remote connection to a db anyway
//but yeah this bit is messy but I don't have time to fix it
pbDB.execSQL("-- Table: Bookings\n" +
"CREATE TABLE IF NOT EXISTS Bookings (\n" +
" BookingID INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL\n" +
" UNIQUE,\n" +
" UserID INTEGER,\n" +
" ShowID INTEGER,\n" +
" NumberofTickets INTEGER,\n" +
" FOREIGN KEY (\n" +
" UserID\n" +
" )\n" +
" REFERENCES Login (UserID),\n" +
" FOREIGN KEY (\n" +
" ShowID\n" +
" )\n" +
" REFERENCES ShowTable (ShowID)\n" +
");\n");
pbDB.execSQL("INSERT INTO Bookings (\n" +
" BookingID,\n" +
" UserID,\n" +
" ShowID,\n" +
" NumberofTickets\n" +
" )\n" +
" VALUES (\n" +
" 1,\n" +
" 1,\n" +
" 3,\n" +
" 2\n" +
" );\n" +
"\n");
pbDB.execSQL("INSERT INTO Bookings (\n" +
" BookingID,\n" +
" UserID,\n" +
" ShowID,\n" +
" NumberofTickets\n" +
" )\n" +
" VALUES (\n" +
" 2,\n" +
" 1,\n" +
" 5,\n" +
" 4\n" +
" );\n" +
"\n");
pbDB.execSQL("-- Table: Login\n" +
"CREATE TABLE IF NOT EXISTS Login (\n" +
" Email TEXT NOT NULL\n" +
" UNIQUE,\n" +
" Password TEXT NOT NULL,\n" +
" UserID INTEGER Primary Key AUTOINCREMENT NOT NULL\n" +
" UNIQUE,\n" +
" UserName Text NOT NULL\n" +
");\n" +
"\n");
pbDB.execSQL("INSERT INTO Login (\n" +
" Email,\n" +
" Password,\n" +
" UserID,\n" +
" UserName\n"+
" )\n" +
" VALUES (\n" +
" 'admin@playbill.com',\n" +
" 'admin',\n" +
" 1,\n" +
" 'administrator'\n" +
" );\n" +
"\n" +
"\n");
pbDB.execSQL("-- Table: ShowTable\n"+
"CREATE TABLE IF NOT EXISTS ShowTable (\n"+
" ShowID INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL\n" +
" UNIQUE,\n" +
" ShowName TEXT \n" +
");\n" +
"\n");
pbDB.execSQL("INSERT INTO ShowTable(\n" +
" ShowID,\n" +
" ShowName\n" +
" )\n" +
" VALUES(\n" +
" 1,\n" +
" 'The Mechant of Venice' \n" +
");\n" +
"\n");
pbDB.execSQL("INSERT INTO ShowTable(\n" +
" ShowID,\n" +
" ShowName\n" +
" )\n" +
" VALUES(\n" +
" 2,\n" +
" 'Hamlet' \n" +
");\n" +
"\n");
pbDB.execSQL("INSERT INTO ShowTable(\n" +
" ShowID,\n" +
" ShowName\n" +
" )\n" +
" VALUES(\n" +
" 3,\n" +
" 'A Midsummer Night''s Dream' \n" +
");\n" +
"\n");
pbDB.execSQL("INSERT INTO ShowTable(\n" +
" ShowID,\n" +
" ShowName\n" +
" )\n" +
" VALUES(\n" +
" 4,\n" +
" 'Oedipus the King' \n" +
");\n" +
"\n");
pbDB.execSQL("INSERT INTO ShowTable(\n" +
" ShowID,\n" +
" ShowName\n" +
" )\n" +
" VALUES(\n" +
" 5,\n" +
" 'The Tempest' \n" +
");\n" +
"\n");
pbDB.execSQL("INSERT INTO ShowTable(\n" +
" ShowID,\n" +
" ShowName\n" +
" )\n" +
" VALUES(\n" +
" 6,\n" +
" 'Antigone' \n" +
");\n" +
"\n");
pbDB.execSQL("-- Table: TicketTable\n" +
"CREATE TABLE IF NOT EXISTS TicketTable (\n" +
" TicketID INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL\n" +
" UNIQUE,\n" +
" Type TEXT,\n" +
" TypeAmount INTEGER,\n" +
" ShowID INTEGER,\n" +
" TypePrice INTEGER\n" +
");\n" +
"\n");
pbDB.execSQL("INSERT INTO TicketTable (\n" +
" TicketID, \n" +
" ShowID,\n" +
" Type,\n" +
" TypeAmount,\n" +
" TypePrice\n" +
" )\n" +
" VALUES (\n" +
" 1,\n" +
" 1,\n" +
" 'Seated',\n" +
" 17,\n" +
" 8\n" +
" );\n" +
"\n");
pbDB.execSQL("INSERT INTO TicketTable (\n" +
" TicketID, \n" +
" ShowID,\n" +
" Type,\n" +
" TypeAmount,\n" +
" TypePrice\n" +
" )\n" +
" VALUES (\n" +
" 2,\n" +
" 2,\n" +
" 'Seated',\n" +
" 8,\n" +
" 8 \n" +
" );\n"+
"\n");
pbDB.execSQL("INSERT INTO TicketTable (\n" +
" TicketID, \n" +
" ShowID,\n" +
" Type,\n" +
" TypeAmount,\n" +
" TypePrice\n" +
" )\n" +
" VALUES (\n" +
" 3,\n" +
" 2,\n" +
" 'Standing',\n" +
" 12,\n" +
" 7\n" +
" );\n" +
"\n");
pbDB.execSQL("INSERT INTO TicketTable (\n" +
" TicketID, \n" +
" ShowID,\n" +
" Type,\n" +
" TypeAmount,\n" +
" TypePrice\n" +
" )\n" +
" VALUES (\n" +
" 4,\n" +
" 3," +
" 'On Stage',\n" +
" 11,\n" +
" 4\n" +
" );\n" +
"\n");
pbDB.execSQL("INSERT INTO TicketTable (\n" +
" TicketID, \n" +
" ShowID,\n" +
" Type,\n" +
" TypeAmount,\n" +
" TypePrice\n" +
" )\n" +
" VALUES (\n" +
" 5,\n" +
" 3,\n" +
" 'Grass',\n" +
" 29,\n" +
" 4\n" +
" );\n" +
"\n");
pbDB.execSQL("INSERT INTO TicketTable (\n" +
" TicketID, \n" +
" ShowID,\n" +
" Type,\n" +
" TypeAmount,\n" +
" TypePrice\n" +
" )\n" +
" VALUES (\n" +
" 6,\n" +
" 4,\n" +
" 'Seated',\n" +
" 5,\n" +
" 9\n" +
" );\n" +
"\n");
pbDB.execSQL("INSERT INTO TicketTable (\n" +
" TicketID, \n" +
" ShowID,\n" +
" Type,\n" +
" TypeAmount,\n" +
" TypePrice\n" +
" )\n" +
" VALUES (\n" +
" 7, \n" +
" 4, \n" +
" 'Standing',\n" +
" 12,\n" +
" 7\n" +
" );\n" +
"\n");
pbDB.execSQL("INSERT INTO TicketTable (\n" +
" TicketID, \n" +
" ShowID,\n" +
" Type,\n" +
" TypeAmount,\n" +
" TypePrice\n" +
" )\n" +
" VALUES (\n" +
" 8,\n" +
" 5,\n" +
" 'Boat A',\n" +
" 6,\n" +
" 9\n" +
" );\n" +
"\n");
pbDB.execSQL("INSERT INTO TicketTable (\n" +
" TicketID, \n" +
" ShowID,\n" +
" Type,\n" +
" TypeAmount,\n" +
" TypePrice\n" +
" )\n" +
" VALUES (\n" +
" 9,\n" +
" 5,\n" +
" 'Boat B',\n" +
" 4,\n" +
" 9\n" +
" );\n" +
"\n");
pbDB.execSQL("INSERT INTO TicketTable (\n" +
" TicketID, \n" +
" ShowID,\n" +
" Type,\n" +
" TypeAmount,\n" +
" TypePrice\n" +
" )\n" +
" VALUES (\n" +
" 10,\n" +
" 5,\n" +
" 'Riverbank',\n" +
" 10,\n" +
" 7\n" +
" );\n" +
"\n");
pbDB.execSQL("INSERT INTO TicketTable (\n" +
" TicketID, \n" +
" ShowID,\n" +
" Type,\n" +
" TypeAmount,\n" +
" TypePrice\n" +
" )\n" +
" VALUES (\n" +
" 11,\n" +
" 6,\n" +
" 'Inner Circle',\n" +
" 5,\n" +
" 16\n" +
" );\n" +
"\n");
pbDB.execSQL("INSERT INTO TicketTable (\n" +
" TicketID, \n" +
" ShowID,\n" +
" Type,\n" +
" TypeAmount,\n" +
" TypePrice\n" +
" )\n" +
" VALUES (\n" +
" 11,\n" +
" 6,\n" +
" 'Outer circle',\n" +
" 8,\n" +
" 13\n" +
" );\n" +
"\n");
pbDB.execSQL("INSERT INTO TicketTable (\n" +
" TicketID, \n" +
" ShowID,\n" +
" Type,\n" +
" TypeAmount,\n" +
" TypePrice\n" +
" )\n" +
" VALUES (\n" +
" 11,\n" +
" 6,\n" +
" 'Standing',\n" +
" 10,\n" +
" 10\n" +
" );\n" +
"\n" +
"\n");
}
//Checks if DB is on device
/*CURRENTLY UNUSED
private static boolean checkDataBase(){
SQLiteDatabase tempDB = null;
try{
String myPath = DBPath +DBName;
tempDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READWRITE);
} catch (SQLiteException e){
Log.e("jw23 - check", e.getMessage());
}
if(tempDB != null) tempDB.close();
return tempDB != null;
} */
//Opens the database
public void openDataBase() throws SQLException{
String myPath = context.getDatabasePath(DBName).toString();
pbDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READWRITE);
}
//checks for login
public boolean loginCheck(String email, String password) {
openDataBase();
String whereClause = "Email=? and Password=?";
String[] whereArgs = new String[]{email, password};
Cursor cursor = pbDB.query("Login", null,
whereClause,
whereArgs,
null, null, null);
int count = cursor.getCount();
//I literally do not know why, but without outputting the count to the log, the code doesn't work
//It's one line, its not worth working out the bug at this time
Log.i("Login Attempt", "Found " + count + " entries");
if(count >= 1) {
Log.i("Login Attempt", "Login Success with "+ email + " as email");
cursor.moveToFirst();
userID = cursor.getInt(cursor.getColumnIndexOrThrow("UserID"));
cursor.close();
return true;
}
else{
Log.i("Login Attempt", "Login Fail");
cursor.close();
return false;
}
}
public Boolean newUser(String username, String email, String password){
openDataBase();
if(!loginCheck(email, password)){
ContentValues contentValues = new ContentValues();
contentValues.put("UserName", username);
contentValues.put("Email", email);
contentValues.put("Password", password);
pbDB.insert("Login", null, contentValues);
return Boolean.TRUE;
}else{
Toast.makeText(context.getApplicationContext(), "There's already a user with that email", Toast.LENGTH_SHORT).show();
return Boolean.FALSE;
}
}
public String retrieveData(int index){
String data ="not found";
String whereClause = "UserID=?";
String[] whereArgs = new String[]{String.valueOf(userID)};
Cursor cursor = pbDB.query("Bookings", null,whereClause,whereArgs,null,null,null);
if(cursor.move(index)){
String[] showArgs = new String[]{cursor.getString(cursor.getColumnIndexOrThrow("ShowID"))};
Log.i("Bookings Call", "Calling " + showArgs[0]);
Cursor csr = pbDB.query("ShowTable", null, "ShowID=?", showArgs, null, null, null);
csr.moveToFirst();
data = "You have " + cursor.getString(cursor.getColumnIndexOrThrow("NumberofTickets")) + " tickets for " + csr.getString(csr.getColumnIndexOrThrow("ShowName")) + "\n";
csr.close();
}
cursor.close();
return data;
}
public int ticketNumber(){
int count;
String whereClause = "UserID=?";
String[] whereArgs = new String[]{String.valueOf(userID)};
Cursor cursor = pbDB.query("Bookings", null, whereClause, whereArgs, null,null,null);
count = cursor.getCount();
cursor.close();
return count;
}
public List<String> loadTicketTypes(){
List<String> list = new ArrayList<>();
Cursor cursor = pbDB.query("TicketTable", null, "ShowID=?", new String[]{String.valueOf(showID)}, null, null, null);
if(cursor.moveToFirst()) {
int count = cursor.getCount();
int i = 0;
while (i < count) {
list.add(cursor.getString(cursor.getColumnIndexOrThrow("Type")));
cursor.moveToNext();
i += 1;
}
}
cursor.close();
return list;
}
public List<String> loadTicketAmounts(String type){
List<String> list = new ArrayList<>();
if(type.equals("Null")){
list.add("0");
return list;
}
Cursor cursor = pbDB.query("TicketTable", null, "ShowID=? and Type=?", new String[]{String.valueOf(showID), type}, null, null, null);
if(cursor.moveToFirst()){
int count = cursor.getInt(cursor.getColumnIndexOrThrow("TypeAmount"));
for(int i =0;i<=count;i++){
String str = ""+i;
list.add(str);
}
}
cursor.close();
return list;
}
public void sellTickets(String type, String amount) {
Integer intAmount = Integer.parseInt(amount);
Cursor cursor = pbDB.query("TicketTable", null, "ShowID=? and Type=?", new String[]{String.valueOf(showID), type}, null, null, null);
if (cursor.moveToFirst()) {
ticketID = cursor.getInt(cursor.getColumnIndexOrThrow("TicketID"));
int count = cursor.getInt(cursor.getColumnIndexOrThrow("TypeAmount"));
count = count - intAmount;
ContentValues ttUpdate = new ContentValues();
ttUpdate.put("TypeAmount", String.valueOf(count));
ContentValues bookUpdate = new ContentValues();
bookUpdate.put("UserID", userID);
bookUpdate.put("ShowID", showID);
bookUpdate.put("NumberofTickets", amount);
pbDB.update("TicketTable", ttUpdate, "TicketID=?", new String[]{String.valueOf(ticketID)});
pbDB.insert("Bookings", null,bookUpdate);
showID = 0;
ticketID = 0;
}
}
}
package com.ysj.playbill;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.google.android.material.bottomnavigation.BottomNavigationView;
public class HAM extends AppCompatActivity implements View.OnClickListener{
private Button B1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ham);
B1 = findViewById(R.id.show1Button);
B1.setOnClickListener((View.OnClickListener)this);
BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_navigation);
bottomNavigationView.setOnItemSelectedListener(new BottomNavigationView.OnItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.home:
Toast.makeText(HAM.this, "Home", Toast.LENGTH_SHORT).show();
Intent homeIntent = new Intent(HAM.this, MainActivity.class);
startActivity(homeIntent);
break;
case R.id.search:
Toast.makeText(HAM.this, "Listings", Toast.LENGTH_SHORT).show();
Intent listIntent = new Intent(HAM.this, search.class);
startActivity(listIntent);
break;
case R.id.booking:
Toast.makeText(HAM.this, "Bookings", Toast.LENGTH_SHORT).show();
Intent bookingIntent = new Intent(HAM.this, Bookings.class);
startActivity(bookingIntent);
break;
}
return true;
}
});
}
@Override
public void onClick(View v) {
Intent i;
switch (v.getId()) {
case R.id.show2Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 2;
startActivity(i);
break;
}
}
}
\ No newline at end of file
package com.ysj.playbill;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class LoginPage extends AppCompatActivity {
Button b1, b2;
EditText ed1, ed2;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
DatabaseHelper dbHelp = new DatabaseHelper(this);
try{
dbHelp.createDB();
} catch(Exception e){
Log.e("jw23 - copy DB", e.getMessage());
}
b1 = (Button)findViewById(R.id.buttonLogin);
b2 = (Button)findViewById(R.id.buttonRegister);
ed1 = (EditText)findViewById(R.id.editText1);
ed2 = (EditText)findViewById(R.id.editText2);
b1.setOnClickListener(v -> {
if(dbHelp.loginCheck(ed1.getText().toString(),ed2.getText().toString())){
Toast.makeText(getApplicationContext(), "Redirecting...", Toast.LENGTH_SHORT).show();
Intent loginIntent = new Intent(this, MainActivity.class);
startActivity(loginIntent);
}else{
Toast.makeText(getApplicationContext(),"Wrong Credentials",Toast.LENGTH_SHORT).show();
}
});
b2.setOnClickListener(v ->{
Intent registerIntent = new Intent(this, Register.class);
startActivity(registerIntent);
});
}
}
\ No newline at end of file
package com.ysj.playbill;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import androidx.annotation.NonNull;
import androidx.cardview.widget.CardView;
public class MainActivity extends AppCompatActivity implements View.OnClickListener{
private CardView S1, S2, S3;
private Button b1, b2;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
S1 = findViewById(R.id.TMOVCard);
S2 = findViewById(R.id.HAMCard);
S3 = findViewById(R.id.card_view);
b1 = findViewById(R.id.show1Button);
b2 = findViewById(R.id.show2Button);
S1.setOnClickListener((View.OnClickListener)this);
S2.setOnClickListener((View.OnClickListener)this);
S3.setOnClickListener((View.OnClickListener)this);
b1.setOnClickListener((View.OnClickListener)this);
b2.setOnClickListener((View.OnClickListener)this);
BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_navigation);
bottomNavigationView.setOnItemSelectedListener(new BottomNavigationView.OnItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.home:
Toast.makeText(MainActivity.this, "Home", Toast.LENGTH_SHORT).show();
Intent homeIntent = new Intent(MainActivity.this, MainActivity.class);
startActivity(homeIntent);
break;
case R.id.search:
Toast.makeText(MainActivity.this, "Listings", Toast.LENGTH_SHORT).show();
Intent listIntent = new Intent(MainActivity.this, search.class);
startActivity(listIntent);
break;
case R.id.booking:
Toast.makeText(MainActivity.this, "Bookings", Toast.LENGTH_SHORT).show();
Intent bookingIntent = new Intent(MainActivity.this, Bookings.class);
startActivity(bookingIntent);
break;
}
return true;
}
});
}
@Override
public void onClick(View v){
Intent i;
switch (v.getId()) {
case R.id.TMOVCard:
i = new Intent(this, TMOV.class);
startActivity(i);
break;
case R.id.HAMCard:
i = new Intent(this, HAM.class);
startActivity(i);
break;
case R.id.show1Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 1;
startActivity(i);
break;
case R.id.show2Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 2;
startActivity(i);
break;
case R.id.card_view:
i = new Intent(this, Bookings.class);
startActivity(i);
break;
}
}
}
\ No newline at end of file
package com.ysj.playbill;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.google.android.material.bottomnavigation.BottomNavigationView;
public class OtK extends AppCompatActivity implements View.OnClickListener{
private Button B1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_otk);
B1 = findViewById(R.id.show1Button);
B1.setOnClickListener((View.OnClickListener)this);
BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_navigation);
bottomNavigationView.setOnItemSelectedListener(new BottomNavigationView.OnItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.home:
Toast.makeText(OtK.this, "Home", Toast.LENGTH_SHORT).show();
Intent homeIntent = new Intent(OtK.this, MainActivity.class);
startActivity(homeIntent);
break;
case R.id.search:
Toast.makeText(OtK.this, "Listings", Toast.LENGTH_SHORT).show();
Intent listIntent = new Intent(OtK.this, search.class);
startActivity(listIntent);
break;
case R.id.booking:
Toast.makeText(OtK.this, "Bookings", Toast.LENGTH_SHORT).show();
Intent bookingIntent = new Intent(OtK.this, Bookings.class);
startActivity(bookingIntent);
break;
}
return true;
}
});
}
@Override
public void onClick(View v) {
Intent i;
switch (v.getId()) {
case R.id.show4Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 4;
startActivity(i);
break;
}
}
}
\ No newline at end of file
package com.ysj.playbill;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.content.Intent;
public class Register extends AppCompatActivity {
EditText edUserName, edEmail, edPassword;
Button b1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_register);
DatabaseHelper dbHelp = new DatabaseHelper(this);
edUserName = (EditText)findViewById(R.id.editTextUsername);
edEmail = (EditText)findViewById(R.id.editTextEmail);
edPassword = (EditText)findViewById(R.id.editTextPassword);
b1 = (Button)findViewById(R.id.buttonRegister);
b1.setOnClickListener(v->{
if(dbHelp.newUser(edUserName.getText().toString(), edEmail.getText().toString(), edPassword.getText().toString())){
Intent registerIntent = new Intent(this, LoginPage.class);
startActivity(registerIntent);
}
});
}
}
\ No newline at end of file
package com.ysj.playbill;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.google.android.material.bottomnavigation.BottomNavigationView;
public class TEMP extends AppCompatActivity implements View.OnClickListener{
private Button B1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_tempest);
B1 = findViewById(R.id.show1Button);
B1.setOnClickListener((View.OnClickListener)this);
BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_navigation);
bottomNavigationView.setOnItemSelectedListener(new BottomNavigationView.OnItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.home:
Toast.makeText(TEMP.this, "Home", Toast.LENGTH_SHORT).show();
Intent homeIntent = new Intent(TEMP.this, MainActivity.class);
startActivity(homeIntent);
break;
case R.id.search:
Toast.makeText(TEMP.this, "Listings", Toast.LENGTH_SHORT).show();
Intent listIntent = new Intent(TEMP.this, search.class);
startActivity(listIntent);
break;
case R.id.booking:
Toast.makeText(TEMP.this, "Bookings", Toast.LENGTH_SHORT).show();
Intent bookingIntent = new Intent(TEMP.this, Bookings.class);
startActivity(bookingIntent);
break;
}
return true;
}
});
}
@Override
public void onClick(View v) {
Intent i;
switch (v.getId()) {
case R.id.show5Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 5;
startActivity(i);
break;
}
}
}
package com.ysj.playbill;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.google.android.material.bottomnavigation.BottomNavigationView;
public class TMOV extends AppCompatActivity implements View.OnClickListener{
private Button B1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_tmov);
B1 = findViewById(R.id.show1Button);
B1.setOnClickListener((View.OnClickListener)this);
BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_navigation);
bottomNavigationView.setOnItemSelectedListener(new BottomNavigationView.OnItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.home:
Toast.makeText(TMOV.this, "Home", Toast.LENGTH_SHORT).show();
Intent homeIntent = new Intent(TMOV.this, MainActivity.class);
startActivity(homeIntent);
break;
case R.id.search:
Toast.makeText(TMOV.this, "Listings", Toast.LENGTH_SHORT).show();
Intent listIntent = new Intent(TMOV.this, search.class);
startActivity(listIntent);
break;
case R.id.booking:
Toast.makeText(TMOV.this, "Bookings", Toast.LENGTH_SHORT).show();
Intent bookingIntent = new Intent(TMOV.this, Bookings.class);
startActivity(bookingIntent);
break;
}
return true;
}
});
}
public void onClick(View v) {
Intent i;
switch (v.getId()) {
case R.id.show1Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 1;
startActivity(i);
break;
}
}
}
\ No newline at end of file
package com.ysj.playbill;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Spinner;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import java.util.ArrayList;
import java.util.List;
import android.widget.Button;
import android.widget.Toast;
import com.google.android.material.bottomnavigation.BottomNavigationView;
public class booking_form extends AppCompatActivity implements AdapterView.OnItemSelectedListener {
Spinner dp1, dp2;
DatabaseHelper dbHelp = new DatabaseHelper(this);
private Button B1;
String selectedSeatType = "";
String selectedAmount = "";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_booking_form);
DatabaseHelper dbHelp = new DatabaseHelper(this);
dp1 = findViewById(R.id.TicketType);
dp2 = findViewById(R.id.TicketAmount);
B1 = findViewById(R.id.submit);
dp1.setOnItemSelectedListener(this);
dp2.setOnItemSelectedListener(this);
B1.setOnClickListener(new View.OnClickListener(){
public void onClick(View v) {
Intent i;
switch (v.getId()) {
case R.id.submit:
dbHelp.sellTickets(selectedSeatType, selectedAmount);
i = new Intent(booking_form.this, MainActivity.class);
startActivity(i);
break;
}
}
});
List<String> tickets = dbHelp.loadTicketTypes();
ArrayAdapter<String> ticketsAdapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, tickets);
ticketsAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
dp1.setAdapter(ticketsAdapter);
dp1.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
selectedSeatType = parent.getItemAtPosition(position).toString();
ticketUpdate();
}
@Override
public void onNothingSelected(AdapterView<?> arg){
//TODO this
}
});
dp2.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
selectedAmount = parent.getItemAtPosition(position).toString();
}
@Override
public void onNothingSelected(AdapterView<?> adapterView) {
}
});
BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_navigation);
bottomNavigationView.setOnItemSelectedListener(new BottomNavigationView.OnItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.home:
Toast.makeText(booking_form.this, "Home", Toast.LENGTH_SHORT).show();
Intent homeIntent = new Intent(booking_form.this, MainActivity.class);
startActivity(homeIntent);
break;
case R.id.search:
Toast.makeText(booking_form.this, "Listings", Toast.LENGTH_SHORT).show();
Intent listIntent = new Intent(booking_form.this, search.class);
startActivity(listIntent);
break;
case R.id.booking:
Toast.makeText(booking_form.this, "Bookings", Toast.LENGTH_SHORT).show();
Intent bookingIntent = new Intent(booking_form.this, Bookings.class);
startActivity(bookingIntent);
break;
}
return true;
}
});
}
public void ticketUpdate(){
List<String> amounts;
if(selectedSeatType.isEmpty()){
amounts = new ArrayList<>();
amounts.add("0");
}else {
amounts = dbHelp.loadTicketAmounts(selectedSeatType);
}
ArrayAdapter<String> amountAdapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, amounts);
amountAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
dp2.setAdapter(amountAdapter);
}
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
}
@Override
public void onNothingSelected(AdapterView<?> arg){
//TODO this
}
}
\ No newline at end of file
package com.ysj.playbill;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.util.Log;
import android.widget.Button;
import android.widget.Toast;
import com.google.android.material.bottomnavigation.BottomNavigationView;
public class search extends AppCompatActivity implements View.OnClickListener{
private CardView S1,S2,S3,S4,S5,S6;
private Button B1,B2,B3,B4,B5,B6;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_search);
S1 = findViewById(R.id.TMOVCard);
S2 = findViewById(R.id.HAMCard);
S3 = findViewById(R.id.AMNDCard);
S4 = findViewById(R.id.OtKCard);
S5 = findViewById(R.id.TempCard);
S6 = findViewById(R.id.AntiCard);
B1 = findViewById(R.id.show1Button);
B2 = findViewById(R.id.show2Button);
B3 = findViewById(R.id.show3Button);
B4 = findViewById(R.id.show4Button);
B5 = findViewById(R.id.show5Button);
B6 = findViewById(R.id.show6Button);
S1.setOnClickListener((View.OnClickListener)this);
S2.setOnClickListener((View.OnClickListener)this);
S3.setOnClickListener((View.OnClickListener)this);
S4.setOnClickListener((View.OnClickListener)this);
S5.setOnClickListener((View.OnClickListener)this);
S6.setOnClickListener((View.OnClickListener)this);
B1.setOnClickListener((View.OnClickListener)this);
B2.setOnClickListener((View.OnClickListener)this);
B3.setOnClickListener((View.OnClickListener)this);
B4.setOnClickListener((View.OnClickListener)this);
B5.setOnClickListener((View.OnClickListener)this);
B6.setOnClickListener((View.OnClickListener)this);
BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_navigation);
bottomNavigationView.setOnItemSelectedListener(new BottomNavigationView.OnItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.home:
Toast.makeText(search.this, "Home", Toast.LENGTH_SHORT).show();
Intent homeIntent = new Intent(search.this, MainActivity.class);
startActivity(homeIntent);
break;
case R.id.search:
Toast.makeText(search.this, "Listings", Toast.LENGTH_SHORT).show();
Intent listIntent = new Intent(search.this, search.class);
startActivity(listIntent);
break;
case R.id.booking:
Toast.makeText(search.this, "Bookings", Toast.LENGTH_SHORT).show();
Intent bookingIntent = new Intent(search.this, Bookings.class);
startActivity(bookingIntent);
break;
}
return true;
}
});
}
@Override
public void onClick(View v){
Intent i;
switch(v.getId()){
case R.id.TMOVCard: i = new Intent(this,TMOV.class);
startActivity(i);
break;
case R.id.HAMCard: i = new Intent(this,HAM.class);
startActivity(i);
break;
case R.id.AMNDCard: i = new Intent(this,AMND.class);
startActivity(i);
break;
case R.id.OtKCard: i = new Intent(this,OtK.class);
startActivity(i);
break;
case R.id.TempCard: i = new Intent(this,TEMP.class);
startActivity(i);
break;
case R.id.AntiCard: i = new Intent(this,ANTI.class);
startActivity(i);
break;
case R.id.show1Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 1;
startActivity(i);
break;
case R.id.show2Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 2;
startActivity(i);
break;
case R.id.show3Button:Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 3;
startActivity(i);
break;
case R.id.show4Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 4;
startActivity(i);
break;
case R.id.show5Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 5;
startActivity(i);
break;
case R.id.show6Button:
i = new Intent(this, booking_form.class);
DatabaseHelper.showID = 6;
startActivity(i);
break;
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<stroke android:width="16dp"
android:color="@color/royal_purple" />
<corners android:bottomLeftRadius="0dp"
android:topLeftRadius="5dp"
android:bottomRightRadius="5dp"
android:topRightRadius="0dp" />
<solid android:color="@color/parchment" />
</shape>
\ No newline at end of file
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="448dp"
android:height="512dp"
android:viewportWidth="448"
android:viewportHeight="512">
<path
android:fillColor="#FF000000"
android:pathData="M128,0c17.7,0 32,14.3 32,32L160,64L288,64L288,32c0,-17.7 14.3,-32 32,-32s32,14.3 32,32L352,64h48c26.5,0 48,21.5 48,48v48L0,160L0,112C0,85.5 21.5,64 48,64L96,64L96,32c0,-17.7 14.3,-32 32,-32zM0,192L448,192L448,464c0,26.5 -21.5,48 -48,48L48,512c-26.5,0 -48,-21.5 -48,-48L0,192zM64,272v32c0,8.8 7.2,16 16,16h32c8.8,0 16,-7.2 16,-16L128,272c0,-8.8 -7.2,-16 -16,-16L80,256c-8.8,0 -16,7.2 -16,16zM192,272v32c0,8.8 7.2,16 16,16h32c8.8,0 16,-7.2 16,-16L256,272c0,-8.8 -7.2,-16 -16,-16L208,256c-8.8,0 -16,7.2 -16,16zM336,256c-8.8,0 -16,7.2 -16,16v32c0,8.8 7.2,16 16,16h32c8.8,0 16,-7.2 16,-16L384,272c0,-8.8 -7.2,-16 -16,-16L336,256zM64,400v32c0,8.8 7.2,16 16,16h32c8.8,0 16,-7.2 16,-16L128,400c0,-8.8 -7.2,-16 -16,-16L80,384c-8.8,0 -16,7.2 -16,16zM208,384c-8.8,0 -16,7.2 -16,16v32c0,8.8 7.2,16 16,16h32c8.8,0 16,-7.2 16,-16L256,400c0,-8.8 -7.2,-16 -16,-16L208,384zM320,400v32c0,8.8 7.2,16 16,16h32c8.8,0 16,-7.2 16,-16L384,400c0,-8.8 -7.2,-16 -16,-16L336,384c-8.8,0 -16,7.2 -16,16z"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="576dp"
android:height="512dp"
android:viewportWidth="576"
android:viewportHeight="512">
<path
android:fillColor="#FF000000"
android:pathData="M575.8,255.5c0,18 -15,32.1 -32,32.1h-32l0.7,160.2c0,2.7 -0.2,5.4 -0.5,8.1V472c0,22.1 -17.9,40 -40,40H456c-1.1,0 -2.2,0 -3.3,-0.1c-1.4,0.1 -2.8,0.1 -4.2,0.1H416,392c-22.1,0 -40,-17.9 -40,-40V448,384c0,-17.7 -14.3,-32 -32,-32H256c-17.7,0 -32,14.3 -32,32v64,24c0,22.1 -17.9,40 -40,40H160,128.1c-1.5,0 -3,-0.1 -4.5,-0.2c-1.2,0.1 -2.4,0.2 -3.6,0.2H104c-22.1,0 -40,-17.9 -40,-40V360c0,-0.9 0,-1.9 0.1,-2.8V287.6H32c-18,0 -32,-14 -32,-32.1c0,-9 3,-17 10,-24L266.4,8c7,-7 15,-8 22,-8s15,2 21,7L564.8,231.5c8,7 12,15 11,24z"/>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:fillColor="#FF000000"
android:pathData="M416,208c0,45.9 -14.9,88.3 -40,122.7L502.6,457.4c12.5,12.5 12.5,32.8 0,45.3s-32.8,12.5 -45.3,0L330.7,376c-34.4,25.2 -76.8,40 -122.7,40C93.1,416 0,322.9 0,208S93.1,0 208,0S416,93.1 416,208zM208,352a144,144 0,1 0,0 -288,144 144,0 1,0 0,288z"/>
</vector>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:layout_margin="0dp"
android:background="@drawable/background_border"
android:orientation="vertical"
tools:context=".AMND">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="57dp"
android:layout_alignBottom="@id/toolbar"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="-2dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textColor="@color/parchment"
android:textSize="34sp"
android:textStyle="bold" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="44dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="0dp"
android:background="@color/royal_purple"
app:itemBackground="@color/royal_purple"
app:itemIconTint="@color/parchment"
app:menu="@menu/bottom_nav_menu" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/toolbar"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginTop = "15dp">
<ImageView
android:id="@+id/image"
android:layout_width="170dp"
android:layout_height="170dp"
android:src="@drawable/midsummer"
android:contentDescription="@string/CDAMND"
android:layout_margin="5dp"
/>
<TextView
android:layout_toEndOf="@+id/image"
android:id="@+id/showName"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:textSize="28sp"
android:layout_marginStart="20dp"
android:text="@string/show3"
android:gravity="center_horizontal"
/>
<TextView
android:layout_below="@+id/showName"
android:layout_toEndOf="@+id/show1Button"
android:id="@+id/showDate"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:textSize="28sp"
android:text="@string/s3date"
android:gravity="center"
/>
<TextView
android:id="@+id/theatreName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/show1Button"
android:layout_marginTop="10dp"
android:textSize="18sp"
android:gravity="center"
android:text="@string/VenueDP" />
<TextView
android:layout_below="@+id/theatreName"
android:id="@+id/showBlurb"
android:layout_marginTop = "15dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:gravity="center"
android:text="@string/show3Blurb"/>
<Button
android:layout_below="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/book"
android:textSize="20sp"
android:layout_marginStart="5dp"
android:id="@+id/show1Button"/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:id = "@+id/wheelchair"
android:src="@drawable/wheelchair"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/accessible"
android:visibility="visible"/>
<TextView
android:id="@+id/access"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/wheelchair"
android:gravity="center"
android:text="@string/accessible"
android:layout_centerInParent="true"
android:visibility="visible"
/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:layout_toStartOf="@+id/wheelchair"
android:id = "@+id/stairs"
android:src="@drawable/stairs"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/steps"
android:visibility="invisible"
android:layout_marginEnd="70dp"
/>
<TextView
android:id="@+id/steps"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/stairs"
android:layout_toStartOf="@+id/access"
android:gravity="center"
android:text="@string/steps"
android:layout_centerInParent="true"
android:layout_marginEnd="60dp"
android:visibility="invisible"
/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:layout_toEndOf="@+id/wheelchair"
android:layout_marginStart="70dp"
android:id = "@+id/flashing"
android:src="@drawable/siren"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/flashing"
android:visibility="visible"
/>
<TextView
android:id="@+id/flash"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/stairs"
android:layout_toEndOf="@+id/access"
android:gravity="center"
android:text="@string/flashing"
android:layout_centerInParent="true"
android:visibility="visible"
android:layout_marginStart="60dp"
/>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:layout_margin="0dp"
android:background="@drawable/background_border"
android:orientation="vertical"
tools:context=".ANTI">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="57dp"
android:layout_alignBottom="@id/toolbar"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="-2dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textColor="@color/parchment"
android:textSize="34sp"
android:textStyle="bold" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="44dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="0dp"
android:background="@color/royal_purple"
app:itemBackground="@color/royal_purple"
app:itemIconTint="@color/parchment"
app:menu="@menu/bottom_nav_menu" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/toolbar"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginTop = "15dp">
<ImageView
android:id="@+id/image"
android:layout_width="170dp"
android:layout_height="170dp"
android:src="@drawable/antigone"
android:contentDescription="@string/CDANT"
android:layout_margin="5dp"
/>
<TextView
android:layout_toEndOf="@+id/image"
android:id="@+id/showName"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:textSize="40sp"
android:layout_marginTop="50dp"
android:layout_marginStart="20dp"
android:text="@string/show6"
android:gravity="center_horizontal"
/>
<TextView
android:layout_below="@+id/showName"
android:layout_toEndOf="@+id/show1Button"
android:id="@+id/showDate"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="65dp"
android:textSize="25sp"
android:text="@string/s6date"
android:gravity="center"
/>
<TextView
android:id="@+id/theatreName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/show1Button"
android:layout_marginTop="10dp"
android:textSize="18sp"
android:gravity="center"
android:text="@string/VenueYM" />
<TextView
android:layout_below="@+id/theatreName"
android:id="@+id/showBlurb"
android:layout_marginTop = "15dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="19sp"
android:gravity="center"
android:text="@string/show6Blurb"/>
<Button
android:layout_below="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/book"
android:textSize="20sp"
android:layout_marginStart="5dp"
android:id="@+id/show1Button"/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:id = "@+id/wheelchair"
android:src="@drawable/wheelchair"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/accessible"
android:visibility="invisible"/>
<TextView
android:id="@+id/access"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/wheelchair"
android:gravity="center"
android:text="@string/accessible"
android:layout_centerInParent="true"
android:visibility="invisible"
/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:layout_toStartOf="@+id/wheelchair"
android:id = "@+id/stairs"
android:src="@drawable/stairs"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/steps"
android:visibility="visible"
android:layout_marginEnd="70dp"
/>
<TextView
android:id="@+id/steps"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/stairs"
android:layout_toStartOf="@+id/access"
android:gravity="center"
android:text="@string/steps"
android:layout_centerInParent="true"
android:layout_marginEnd="60dp"
android:visibility="visible"
/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:layout_toEndOf="@+id/wheelchair"
android:layout_marginStart="70dp"
android:id = "@+id/flashing"
android:src="@drawable/siren"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/flashing"
android:visibility="invisible"
/>
<TextView
android:id="@+id/flash"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/stairs"
android:layout_toEndOf="@+id/access"
android:gravity="center"
android:text="@string/flashing"
android:layout_centerInParent="true"
android:visibility="invisible"
android:layout_marginStart="60dp"
/>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:layout_margin="0dp"
android:background="@drawable/background_border"
android:orientation="vertical"
tools:context=".booking_form">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="57dp"
android:layout_alignBottom="@id/toolbar"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="-2dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textColor="@color/parchment"
android:textSize="34sp"
android:textStyle="bold" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="44dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="0dp"
android:background="@color/royal_purple"
app:itemBackground="@color/royal_purple"
app:itemIconTint="@color/parchment"
app:menu="@menu/bottom_nav_menu" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/toolbar"
android:layout_above="@+id/bottom_navigation"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/showTitle"
android:textSize="24sp"
android:text="@string/select"
android:gravity = "center"/>
<Spinner
android:id="@+id/TicketType"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_below="@+id/showTitle"
/>
<Spinner
android:id="@+id/TicketAmount"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_below="@+id/TicketType"
android:layout_marginTop="15dp"
/>
<Button
android:id="@+id/submit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/submit"
android:layout_below="@+id/TicketAmount"
android:layout_alignEnd="@id/TicketAmount"
android:layout_marginTop="15dp"/>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:layout_margin="0dp"
android:background="@drawable/background_border"
android:orientation="vertical"
tools:context=".Bookings">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="57dp"
android:layout_alignBottom="@id/toolbar"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="-2dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textColor="@color/parchment"
android:textSize="34sp"
android:textStyle="bold" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="44dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="0dp"
android:background="@color/royal_purple"
app:itemBackground="@color/royal_purple"
app:itemIconTint="@color/parchment"
app:menu="@menu/bottom_nav_menu" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_below="@+id/toolbar"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_above="@+id/bottom_navigation">
<TextView
android:id="@+id/bookingTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/bookings"
android:textSize="30sp" />
<TextView
android:id="@+id/bookings"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:textSize="20sp" />
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:layout_margin="0dp"
android:background="@drawable/background_border"
android:orientation="vertical"
tools:context=".HAM">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="57dp"
android:layout_alignBottom="@id/toolbar"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="-2dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textColor="@color/parchment"
android:textSize="34sp"
android:textStyle="bold" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="44dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="0dp"
android:background="@color/royal_purple"
app:itemBackground="@color/royal_purple"
app:itemIconTint="@color/parchment"
app:menu="@menu/bottom_nav_menu" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/toolbar"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginTop = "15dp">
<ImageView
android:id="@+id/image"
android:layout_width="170dp"
android:layout_height="170dp"
android:src="@drawable/hamlet"
android:contentDescription="@string/CDHAM"
android:layout_margin="5dp"
/>
<TextView
android:layout_toEndOf="@+id/image"
android:id="@+id/showName"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:textSize="38sp"
android:layout_marginStart="20dp"
android:layout_marginTop="40dp"
android:text="@string/show2"
android:gravity="center_horizontal"
/>
<TextView
android:layout_below="@+id/showName"
android:layout_toEndOf="@+id/show1Button"
android:id="@+id/showDate"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="80dp"
android:textSize="28sp"
android:text="@string/s2date"
android:gravity="center"
/>
<TextView
android:id="@+id/theatreName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/show1Button"
android:layout_marginTop="10dp"
android:textSize="18sp"
android:gravity="center"
android:text="@string/VenueCT" />
<TextView
android:layout_below="@+id/theatreName"
android:id="@+id/showBlurb"
android:layout_marginTop = "15dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:gravity="center"
android:text="@string/show2Blurb"/>
<Button
android:layout_below="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/book"
android:textSize="20sp"
android:layout_marginStart="5dp"
android:id="@+id/show1Button"/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:id = "@+id/wheelchair"
android:src="@drawable/wheelchair"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/accessible"
android:visibility="invisible"/>
<TextView
android:id="@+id/access"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/wheelchair"
android:gravity="center"
android:text="@string/accessible"
android:layout_centerInParent="true"
android:visibility="invisible"
/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:layout_toStartOf="@+id/wheelchair"
android:id = "@+id/stairs"
android:src="@drawable/stairs"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/steps"
android:visibility="visible"
android:layout_marginEnd="70dp"
/>
<TextView
android:id="@+id/steps"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/stairs"
android:layout_toStartOf="@+id/access"
android:gravity="center"
android:text="@string/steps"
android:layout_centerInParent="true"
android:visibility="visible"
android:layout_marginEnd="60dp"
/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:layout_toEndOf="@+id/wheelchair"
android:layout_marginStart="70dp"
android:id = "@+id/flashing"
android:src="@drawable/siren"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/flashing"
android:visibility="visible"
/>
<TextView
android:id="@+id/flash"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/stairs"
android:layout_toEndOf="@+id/access"
android:gravity="center"
android:text="@string/flashing"
android:layout_centerInParent="true"
android:visibility="visible"
android:layout_marginStart="60dp"
/>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="0dp"
android:background="@drawable/background_border"
android:orientation="vertical"
tools:context=".LoginPage">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme" />
<TextView
android:id="@+id/title2"
android:layout_width="match_parent"
android:layout_height="57dp"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="-2dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textColor="@color/parchment"
android:textSize="34sp"
android:textStyle="bold" />
<TextView
android:id="@+id/welcomeMessage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/toolbar2"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="17dp"
android:layout_marginTop="-1dp"
android:layout_marginEnd="17dp"
android:text="@string/welcome"
android:textAlignment="center"
android:textColor="@color/royal_purple"
android:textSize="55sp"/>
<EditText
android:id="@+id/editText1"
android:layout_width="360dp"
android:layout_height="wrap_content"
android:layout_below="@+id/welcomeMessage"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="25dp"
android:layout_marginTop="21dp"
android:layout_marginEnd="25dp"
android:hint="@string/prompt_email"
android:autofillHints="email"
android:inputType="textEmailAddress"
android:textAlignment="center"
android:textColor="@color/royal_purple"
android:textSize="24sp"
android:typeface="normal" />
<EditText
android:id="@+id/editText2"
android:layout_width="360dp"
android:layout_height="wrap_content"
android:layout_below="@+id/editText1"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="25dp"
android:layout_marginTop="21dp"
android:layout_marginEnd="25dp"
android:hint="@string/prompt_password"
android:autofillHints="password"
android:inputType="textPassword"
android:textAlignment="center"
android:textColor="@color/royal_purple"
android:textSize="24sp"
android:typeface="normal" />
<Button
android:id="@+id/buttonLogin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/editText2"
android:layout_centerInParent="true"
android:layout_marginTop="2dp"
android:onClick="login"
android:text="@string/login" />
<Button
android:id="@+id/buttonRegister"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/buttonLogin"
android:layout_centerInParent="true"
android:layout_marginTop="2dp"
android:onClick="register"
android:text="@string/action_register" />
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:layout_margin="0dp"
android:background="@drawable/background_border"
android:orientation="vertical"
tools:context=".MainActivity">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="57dp"
android:layout_alignBottom="@id/toolbar"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="-2dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textColor="@color/parchment"
android:textSize="34sp"
android:textStyle="bold" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="44dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="0dp"
android:background="@color/royal_purple"
app:itemBackground="@color/royal_purple"
app:itemIconTint="@color/parchment"
app:menu="@menu/bottom_nav_menu" />
<androidx.cardview.widget.CardView
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/title"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_gravity="center"
android:layout_marginStart="15dp"
android:layout_marginTop="0sp"
android:layout_marginEnd="15sp"
android:layout_marginBottom="0sp"
app:cardCornerRadius="4dp"
app:cardBackgroundColor="@color/pink"
>
<TextView
android:id="@+id/info_text"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/Ticket"
android:textAlignment="center"
android:textSize="50sp"
android:textColor="@color/dark_blue"/>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_below="@+id/card_view"
android:layout_marginBottom="1dp"
android:layout_marginTop="15dp"
android:id="@+id/TMOVCard">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="12dp"
android:background="@color/parchment">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/image"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/tmovposter"
android:layout_margin="5dp"
/>
<TextView
android:layout_toEndOf="@+id/image"
android:id="@+id/showName"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:textSize="16sp"
android:text="@string/show1"/>
<TextView
android:layout_toEndOf="@+id/showName"
android:id="@+id/showDate"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:textSize="15sp"
android:gravity="end"
android:text="@string/s1date"
/>
<TextView
android:id="@+id/theatreName"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_below="@+id/showName"
android:layout_toEndOf="@+id/image"
android:textSize="14sp"
android:text="@string/VenueMAH" />
<TextView
android:layout_toEndOf="@+id/image"
android:layout_below="@+id/theatreName"
android:id="@+id/showBlurb"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:textSize="12sp"
android:text="@string/show1Blurb"/>
<Button
android:layout_below="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/book"
android:textSize="10sp"
android:id="@+id/show1Button"/>
</RelativeLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_below="@+id/TMOVCard"
android:layout_marginBottom="1dp"
android:layout_marginTop="20dp"
android:id="@+id/HAMCard">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="12dp"
android:background="@color/parchment">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/image2"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/hamlet"
android:layout_margin="5dp"
/>
<TextView
android:layout_toEndOf="@+id/image2"
android:id="@+id/showName2"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:textSize="16sp"
android:text="@string/show2"/>
<TextView
android:layout_toEndOf="@+id/showName2"
android:id="@+id/showDate2"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:textSize="15sp"
android:gravity="end"
android:text="@string/s2date"
/>
<TextView
android:id="@+id/theatreName2"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_below="@+id/showName2"
android:layout_toEndOf="@+id/image2"
android:textSize="14sp"
android:text="@string/VenueCT" />
<TextView
android:layout_toEndOf="@+id/image2"
android:layout_below="@+id/theatreName2"
android:id="@+id/showBlurb2"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:textSize="12sp"
android:text="@string/show2Blurb"/>
<Button
android:layout_below="@+id/image2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/book"
android:textSize="10sp"
android:id = "@+id/show2Button"/>
</RelativeLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:layout_margin="0dp"
android:background="@drawable/background_border"
android:orientation="vertical"
tools:context=".OtK">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="57dp"
android:layout_alignBottom="@id/toolbar"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="-2dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textColor="@color/parchment"
android:textSize="34sp"
android:textStyle="bold" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="44dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="0dp"
android:background="@color/royal_purple"
app:itemBackground="@color/royal_purple"
app:itemIconTint="@color/parchment"
app:menu="@menu/bottom_nav_menu" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/toolbar"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginTop = "15dp">
<ImageView
android:id="@+id/image"
android:layout_width="170dp"
android:layout_height="170dp"
android:src="@drawable/oedipus"
android:contentDescription="@string/CDOTK"
android:layout_margin="5dp"
/>
<TextView
android:layout_toEndOf="@+id/image"
android:id="@+id/showName"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:textSize="40sp"
android:layout_marginTop="30dp"
android:layout_marginStart="20dp"
android:text="@string/show4"
android:gravity="center_horizontal"
/>
<TextView
android:layout_below="@+id/showName"
android:layout_toEndOf="@+id/show1Button"
android:id="@+id/showDate"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="25dp"
android:textSize="28sp"
android:text="@string/s4date"
android:gravity="center"
/>
<TextView
android:id="@+id/theatreName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/show1Button"
android:layout_marginTop="10dp"
android:textSize="18sp"
android:gravity="center"
android:text="@string/VenueSMA" />
<TextView
android:layout_below="@+id/theatreName"
android:id="@+id/showBlurb"
android:layout_marginTop = "15dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:gravity="center"
android:text="@string/show4Blurb"/>
<Button
android:layout_below="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/book"
android:textSize="20sp"
android:layout_marginStart="5dp"
android:id="@+id/show1Button"/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:id = "@+id/wheelchair"
android:src="@drawable/wheelchair"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/accessible"
android:visibility="visible"/>
<TextView
android:id="@+id/access"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/wheelchair"
android:gravity="center"
android:text="@string/accessible"
android:layout_centerInParent="true"
android:visibility="visible"
/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:layout_toStartOf="@+id/wheelchair"
android:id = "@+id/stairs"
android:src="@drawable/stairs"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/steps"
android:visibility="invisible"
android:layout_marginEnd="70dp"
/>
<TextView
android:id="@+id/steps"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/stairs"
android:layout_toStartOf="@+id/access"
android:gravity="center"
android:text="@string/steps"
android:layout_centerInParent="true"
android:layout_marginEnd="60dp"
android:visibility="invisible"
/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:layout_toEndOf="@+id/wheelchair"
android:layout_marginStart="70dp"
android:id = "@+id/flashing"
android:src="@drawable/siren"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/flashing"
android:visibility="invisible"
/>
<TextView
android:id="@+id/flash"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/stairs"
android:layout_toEndOf="@+id/access"
android:gravity="center"
android:text="@string/flashing"
android:layout_centerInParent="true"
android:visibility="invisible"
android:layout_marginStart="60dp"
/>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:layout_margin="0dp"
android:background="@drawable/background_border"
android:orientation="vertical"
tools:context=".MainActivity">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="57dp"
android:layout_alignBottom="@id/toolbar"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="-2dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textColor="@color/parchment"
android:textSize="34sp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView"
android:layout_below="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="@string/username"
android:textAlignment="center"
android:textColor="@color/royal_purple"
android:textSize="32sp"/>
<EditText
android:id="@+id/editTextUsername"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView"
android:layout_marginStart="55sp"
android:layout_marginTop="0sp"
android:layout_marginEnd="55sp"
android:layout_marginBottom="5sp"
android:ems="10"
android:inputType="text"
android:textColor="@color/royal_purple"
android:hint="@string/username"
android:autofillHints="name"
android:textSize="25sp"/>
<TextView
android:id="@+id/textView2"
android:layout_below="@+id/editTextUsername"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/email"
android:textAlignment="center"
android:textColor="@color/royal_purple"
android:textSize="32sp"/>
<EditText
android:id="@+id/editTextEmail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView2"
android:layout_marginStart="55sp"
android:layout_marginTop="0sp"
android:layout_marginEnd="55sp"
android:layout_marginBottom="5sp"
android:ems="10"
android:inputType="textEmailAddress"
android:textColor="@color/royal_purple"
android:hint="@string/prompt_email"
android:autofillHints="email"
android:textSize="25sp"/>
<TextView
android:id="@+id/textView3"
android:layout_below="@+id/editTextEmail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/prompt_password"
android:textAlignment="center"
android:textColor="@color/royal_purple"
android:textSize="32sp"/>
<EditText
android:id="@+id/editTextPassword"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView3"
android:layout_marginStart="55sp"
android:layout_marginTop="0sp"
android:layout_marginEnd="55sp"
android:layout_marginBottom="5sp"
android:ems="10"
android:inputType="textPassword"
android:textColor="@color/royal_purple"
android:hint="@string/prompt_password"
android:autofillHints="email"
android:textSize="25sp"/>
<Button
android:id="@+id/buttonRegister"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/editTextPassword"
android:layout_centerInParent="true"
android:layout_marginTop="2dp"
android:onClick="login"
android:text="@string/action_register" />
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:layout_margin="0dp"
android:background="@drawable/background_border"
android:orientation="vertical"
tools:context=".search">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="57dp"
android:layout_alignBottom="@id/toolbar"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="-2dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textColor="@color/parchment"
android:textSize="34sp"
android:textStyle="bold"
tools:ignore="TextSizeCheck" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="44dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="0dp"
android:background="@color/royal_purple"
app:itemBackground="@color/royal_purple"
app:itemIconTint="@color/parchment"
app:menu="@menu/bottom_nav_menu" />
<TextView
android:id="@+id/searchTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/toolbar"
android:text="@string/search"
android:textSize="30sp"
android:gravity="center"/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/searchTitle"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_above="@id/bottom_navigation">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<androidx.cardview.widget.CardView
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_marginTop="15dp"
android:id="@+id/TMOVCard"
android:clickable="true">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/parchment"
android:padding="12dp">
<ImageView
android:id="@+id/image"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/tmovposter"
android:contentDescription="@string/CDTMOV"
android:layout_margin="5dp"
/>
<TextView
android:id="@+id/showName"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/image"
android:text="@string/show1"
android:textSize="16sp"
tools:ignore="TextSizeCheck,TextContrastCheck" />
<TextView
android:id="@+id/showDate"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/showName"
android:gravity="end"
android:text="@string/s1date"
android:textColor="#795548"
android:textSize="15sp"
tools:ignore="TextSizeCheck,TextSizeCheck,TextSizeCheck" />
<TextView
android:id="@+id/theatreName"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_below="@+id/showName"
android:layout_toEndOf="@+id/image"
android:text="@string/VenueMAH"
android:textSize="14sp"
tools:ignore="TextSizeCheck,TextSizeCheck,TextContrastCheck,TextContrastCheck" />
<TextView
android:id="@+id/showBlurb"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_below="@+id/theatreName"
android:layout_toEndOf="@+id/image"
android:text="@string/show1Blurb"
android:textSize="12sp"
tools:ignore="TextSizeCheck,TextSizeCheck,TextContrastCheck" />
<Button
android:id="@+id/show1Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/image"
android:text="@string/book"
android:textSize="11sp"
tools:ignore="DuplicateSpeakableTextCheck,DuplicateSpeakableTextCheck" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_marginTop="15dp"
android:id="@+id/HAMCard"
android:clickable="true">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="12dp"
android:background="@color/parchment">
<ImageView
android:id="@+id/image2"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/hamlet"
android:contentDescription="@string/CDHAM"
android:layout_margin="5dp"
/>
<TextView
android:id="@+id/show2Name"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/image2"
android:text="@string/show2"
android:textSize="16sp"
tools:ignore="TextContrastCheck" />
<TextView
android:id="@+id/show2Date"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/show2Name"
android:gravity="end"
android:text="@string/s2date"
android:textSize="15sp"
tools:ignore="TextSizeCheck,TextContrastCheck" />
<TextView
android:id="@+id/theatreName2"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_below="@+id/show2Name"
android:layout_toEndOf="@+id/image2"
android:text="@string/VenueCT"
android:textSize="14sp"
tools:ignore="TextContrastCheck" />
<TextView
android:id="@+id/show2Blurb"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_below="@+id/theatreName2"
android:layout_toEndOf="@+id/image2"
android:text="@string/show2Blurb"
android:textSize="12sp"
tools:ignore="TextSizeCheck,TextSizeCheck,TextContrastCheck,TextContrastCheck" />
<Button
android:layout_below="@+id/image2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/book"
android:textSize="11sp"
android:id="@+id/show2Button"/>
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_marginTop="15dp"
android:id="@+id/AMNDCard"
android:clickable="true">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="12dp"
android:background="@color/parchment">
<ImageView
android:id="@+id/image3"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_marginStart="5dp"
android:layout_marginTop="5dp"
android:layout_marginEnd="5dp"
android:layout_marginBottom="5dp"
android:contentDescription="@string/CDAMND"
android:src="@drawable/midsummer"
tools:ignore="ImageContrastCheck,ImageContrastCheck" />
<TextView
android:id="@+id/show3Name"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/image3"
android:text="@string/show3"
android:textSize="16sp"
tools:ignore="TextSizeCheck,TextSizeCheck,TextContrastCheck,TextContrastCheck" />
<TextView
android:id="@+id/show3Date"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/show3Name"
android:gravity="end"
android:text="@string/s3date"
android:textColor="#795548"
android:textSize="15sp"
tools:ignore="TextSizeCheck,TextSizeCheck,TextContrastCheck" />
<TextView
android:id="@+id/theatreName3"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_below="@+id/show3Name"
android:layout_toEndOf="@+id/image3"
android:text="@string/VenueDP"
android:textSize="14sp"
tools:ignore="TextContrastCheck" />
<TextView
android:layout_toEndOf="@+id/image3"
android:layout_below="@+id/theatreName3"
android:id="@+id/show3Blurb"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:textSize="12sp"
android:text="@string/show3Blurb"/>
<Button
android:layout_below="@+id/image3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/book"
android:textSize="11sp"
android:id="@+id/show3Button"/>
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_marginTop="15dp"
android:id="@+id/OtKCard"
android:clickable="true">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="12dp"
android:background="@color/parchment">
<ImageView
android:id="@+id/image4"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/oedipus"
android:contentDescription="@string/CDOTK"
android:layout_margin="5dp"
/>
<TextView
android:layout_toEndOf="@+id/image4"
android:id="@+id/show4Name"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:textSize="16sp"
android:text="@string/show4"/>
<TextView
android:layout_toEndOf="@+id/show4Name"
android:id="@+id/show4Date"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:textSize="15sp"
android:gravity="end"
android:text="@string/s4date"
/>
<TextView
android:id="@+id/theatreName4"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_below="@+id/show4Name"
android:layout_toEndOf="@+id/image4"
android:textSize="14sp"
android:text="@string/VenueSMA" />
<TextView
android:layout_toEndOf="@+id/image4"
android:layout_below="@+id/theatreName4"
android:id="@+id/show4Blurb"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:textSize="12sp"
android:text="@string/show4Blurb"/>
<Button
android:layout_below="@+id/image4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/book"
android:textSize="11sp"
android:id="@+id/show4Button"/>
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_marginTop="15dp"
android:id="@+id/TempCard"
android:clickable="true">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="12dp"
android:background="@color/parchment">
<ImageView
android:id="@+id/image5"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/tempest"
android:contentDescription="@string/CDTEMP"
android:layout_margin="5dp"
/>
<TextView
android:layout_toEndOf="@+id/image5"
android:id="@+id/show5Name"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:textSize="16sp"
android:text="@string/show5"/>
<TextView
android:layout_toEndOf="@+id/show5Name"
android:id="@+id/show5Date"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:textSize="15sp"
android:gravity="end"
android:text="@string/s5date"
/>
<TextView
android:id="@+id/theatreName5"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_below="@+id/show5Name"
android:layout_toEndOf="@+id/image5"
android:textSize="14sp"
android:text="@string/VenueMB" />
<TextView
android:layout_toEndOf="@+id/image5"
android:layout_below="@+id/theatreName5"
android:id="@+id/show5Blurb"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:textSize="12sp"
android:text="@string/show5Blurb"/>
<Button
android:layout_below="@+id/image5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/book"
android:textSize="11sp"
android:id="@+id/show5Button"/>
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1dp"
android:layout_marginTop="15dp"
android:id="@+id/AntiCard"
android:clickable="true">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="12dp"
android:background="@color/parchment">
<ImageView
android:id="@+id/image6"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/antigone"
android:contentDescription="@string/CDANT"
android:layout_margin="5dp"
/>
<TextView
android:layout_toEndOf="@+id/image6"
android:id="@+id/show6Name"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:textSize="16sp"
android:text="@string/show6"/>
<TextView
android:id="@+id/show6Date"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/show6Name"
android:gravity="end"
android:text="@string/s6date"
android:textSize="15sp"
tools:ignore="TextSizeCheck" />
<TextView
android:id="@+id/theatreName6"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_below="@+id/show6Name"
android:layout_toEndOf="@+id/image6"
android:textSize="14sp"
android:text="@string/VenueYM" />
<TextView
android:layout_toEndOf="@+id/image6"
android:layout_below="@+id/theatreName6"
android:id="@+id/show6Blurb"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:textSize="12sp"
android:text="@string/show6Blurb"/>
<Button
android:layout_below="@+id/image6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/book"
android:textSize="11sp"
android:id="@+id/show6Button"/>
</RelativeLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</ScrollView>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:layout_margin="0dp"
android:background="@drawable/background_border"
android:orientation="vertical"
tools:context=".TEMP">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="57dp"
android:layout_alignBottom="@id/toolbar"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="-2dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textColor="@color/parchment"
android:textSize="34sp"
android:textStyle="bold" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="44dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="0dp"
android:background="@color/royal_purple"
app:itemBackground="@color/royal_purple"
app:itemIconTint="@color/parchment"
app:menu="@menu/bottom_nav_menu" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/toolbar"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginTop = "15dp">
<ImageView
android:id="@+id/image"
android:layout_width="170dp"
android:layout_height="170dp"
android:src="@drawable/tempest"
android:contentDescription="@string/CDTEMP"
android:layout_margin="5dp"
/>
<TextView
android:layout_toEndOf="@+id/image"
android:id="@+id/showName"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:textSize="40sp"
android:layout_marginTop="30dp"
android:layout_marginStart="20dp"
android:text="@string/show5"
android:gravity="center_horizontal"
/>
<TextView
android:layout_below="@+id/showName"
android:layout_toEndOf="@+id/show1Button"
android:id="@+id/showDate"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="25dp"
android:textSize="28sp"
android:text="@string/s5date"
android:gravity="center"
/>
<TextView
android:id="@+id/theatreName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/show1Button"
android:layout_marginTop="10dp"
android:textSize="18sp"
android:gravity="center"
android:text="@string/VenueMB" />
<TextView
android:layout_below="@+id/theatreName"
android:id="@+id/showBlurb"
android:layout_marginTop = "15dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:gravity="center"
android:text="@string/show5Blurb"/>
<Button
android:layout_below="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/book"
android:textSize="20sp"
android:layout_marginStart="5dp"
android:id="@+id/show1Button"/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:id = "@+id/wheelchair"
android:src="@drawable/wheelchair"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/accessible"
android:visibility="visible"/>
<TextView
android:id="@+id/access"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/wheelchair"
android:gravity="center"
android:text="@string/accessible"
android:layout_centerInParent="true"
android:visibility="visible"
/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:layout_toStartOf="@+id/wheelchair"
android:id = "@+id/stairs"
android:src="@drawable/stairs"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/steps"
android:visibility="invisible"
android:layout_marginEnd="70dp"
/>
<TextView
android:id="@+id/steps"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/stairs"
android:layout_toStartOf="@+id/access"
android:gravity="center"
android:text="@string/steps"
android:layout_centerInParent="true"
android:layout_marginEnd="60dp"
android:visibility="invisible"
/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:layout_toEndOf="@+id/wheelchair"
android:layout_marginStart="70dp"
android:id = "@+id/flashing"
android:src="@drawable/siren"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/flashing"
android:visibility="invisible"
/>
<TextView
android:id="@+id/flash"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/stairs"
android:layout_toEndOf="@+id/access"
android:gravity="center"
android:text="@string/flashing"
android:layout_centerInParent="true"
android:visibility="invisible"
android:layout_marginStart="60dp"
/>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:layout_margin="0dp"
android:background="@drawable/background_border"
android:orientation="vertical"
tools:context=".TMOV">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="?attr/actionBarTheme" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="57dp"
android:layout_alignBottom="@id/toolbar"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:layout_marginEnd="0dp"
android:layout_marginBottom="-2dp"
android:text="@string/app_name"
android:textAlignment="center"
android:textColor="@color/parchment"
android:textSize="34sp"
android:textStyle="bold" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="44dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="0dp"
android:background="@color/royal_purple"
app:itemBackground="@color/royal_purple"
app:itemIconTint="@color/parchment"
app:menu="@menu/bottom_nav_menu" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/toolbar"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginTop = "15dp">
<ImageView
android:id="@+id/image"
android:layout_width="170dp"
android:layout_height="170dp"
android:src="@drawable/tmovposter"
android:contentDescription="@string/CDTMOV"
android:layout_margin="5dp"
/>
<TextView
android:layout_toEndOf="@+id/image"
android:id="@+id/showName"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:textSize="38sp"
android:layout_marginStart="20dp"
android:text="@string/show1"
android:gravity="center"
/>
<TextView
android:layout_below="@+id/showName"
android:layout_toEndOf="@+id/show1Button"
android:id="@+id/showDate"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:textSize="28sp"
android:text="@string/s1date"
android:gravity="center"
/>
<TextView
android:id="@+id/theatreName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/show1Button"
android:layout_marginTop="10dp"
android:textSize="18sp"
android:gravity="center"
android:text="@string/VenueMAH" />
<TextView
android:layout_below="@+id/theatreName"
android:id="@+id/showBlurb"
android:layout_marginTop = "15dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:gravity="center"
android:text="@string/show1Blurb"/>
<Button
android:layout_below="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/book"
android:textSize="20sp"
android:layout_marginStart="5dp"
android:id="@+id/show1Button"/>
<ImageView
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_below="@+id/showBlurb"
android:id = "@+id/wheelchair"
android:src="@drawable/wheelchair"
android:gravity="center_vertical"
android:layout_centerInParent="true"
android:contentDescription="@string/accessible"
/>
<TextView
android:id="@+id/access"
android:layout_width="70dp"
android:layout_height="wrap_content"
android:layout_below="@+id/wheelchair"
android:gravity="center"
android:text="@string/accessible"
android:layout_centerInParent="true"
/>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/home"
android:enabled="true"
android:icon="@drawable/house_solid"
app:showAsAction="ifRoom" />
<item
android:id="@+id/search"
android:enabled="true"
android:icon="@drawable/magnifying_glass_solid"
app:showAsAction="ifRoom" />
<item
android:id="@+id/booking"
android:enabled="true"
android:icon="@drawable/calendar_days_solid"
app:showAsAction="ifRoom" />
</menu>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
\ No newline at end of file
<resources>
<dimen name="activity_horizontal_margin">48dp</dimen>
</resources>
\ No newline at end of file
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.PlayBill" parent="Theme.MaterialComponents.Light.NoActionBar">
<!-- Primary brand color. -->
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
<item name="colorPrimary">@color/royal_purple</item>
<item name="colorPrimaryVariant">@color/dark_blue</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/pale_blue</item>
<item name="colorSecondaryVariant">@color/teal_700</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
<item name="android:colorBackground">@color/parchment</item>
<item name="android:fontFamily">@font/allema</item>
</style>
</resources>
\ No newline at end of file
<resources>
<dimen name="activity_horizontal_margin">200dp</dimen>
</resources>
\ No newline at end of file
<resources>
<dimen name="activity_horizontal_margin">48dp</dimen>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="pale_blue">#FFB8BBF5</color>
<color name="parchment">#FFF6EBAC</color>
<color name="pink">#FFFF5762</color>
<color name="royal_purple">#FFA92383</color>
<color name="dark_blue">#FF150B47</color>
</resources>
\ No newline at end of file
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#A92383</color>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name = "show1">The Merchant of Venice</string>
<string name = "show2">Hamlet</string>
<string name = "show3">A Midsummer Night\'s Dream</string>
<string name = "show4">Oedipus the King</string>
<string name = "show5">The Tempest</string>
<string name = "show6">Antigone</string>
<string name = "s1date">20:00 April 23</string>
<string name = "s2date">18:00 May 19</string>
<string name = "s3date">19:00 June 3</string>
<string name = "s4date">20:00 July 28</string>
<string name = "s5date">14:00 August 19</string>
<string name = "s6date">21:00 September 20</string>
<string name = "VenueMAH">Merchant Adventurer\'s Hall, York</string>
<string name = "VenueCT">Clifford\'s Tower, York</string>
<string name = "VenueDP">Dean\'s Park, York</string>
<string name = "VenueSMA">St Mary\'s Abbey, Museum Gardens, York</string>
<string name = "VenueMB">Millennium Bridge, York</string>
<string name = "VenueYM">The Crypt, York Minster, York</string>
<string name = "show1Blurb">A merchant in Venice named Antonio defaults on a large loan provided by a Jewish moneylender, Shylock. The Merchant Adventurer\'s Hall is a Grade I listed medieval guildhall built in 1357.</string>
<string name = "show2Blurb">Prince Hamlet must exact revenge against his uncle Claudius for the murder of his father. Clifford\'s Keep is the ruined keep of York Castle, the last remaining building of the medieval Norman castle.</string>
<string name = "show3Blurb">The classic Shakespeare comedy takes you away to a forest full of fairies for a night of intrigue. In the shadow of York Minster, Dean\'s Park is a 19th century urban park in the centre of York.</string>
<string name = "show4Blurb">Travel back to ancient Greece for this classic Athenian tragedy. The Abbey of St Mary is a ruined Benedictine abbey and a scheduled monument.</string>
<string name = "show5Blurb">Shakespeare\'s comedy about betrayal, ill treatment, the development of magic arts and a plot of revenge. With a flood delayed open in 2001, York\'s Millennium Bridge is the most recent of York\'s river crossings.</string>
<string name = "show6Blurb">Antigone wants to bury her brother\'s body in spite of her uncle, placing her relationship with her brother above human laws. The Minster\'s crypt is the perfect site for this story of where the lines between life and death blur.</string>
<string name = "accessible">Has Wheelchair Access</string>
<string name = "steps">Must be able to climb 20 steps</string>
<string name = "flashing">Performance includes flashing lights</string>
<string name = "CDTMOV">The Poster for The Merchant of Venice</string>
<string name = "CDHAM">The Poster for Hamlet</string>
<string name = "CDAMND">The Poster for A Midsummer Night\'s Dream</string>
<string name = "CDOTK">The Poster for Oedipus the King</string>
<string name = "CDTEMP">The Poster for The Tempest</string>
<string name = "CDANT">The Poster for Antigone</string>
</resources>
\ No newline at end of file
<resources>
<string name="app_name">PlayBill</string>
<string name="primary_color">Primary color</string>
<string name="button">Button</string>
<string name="secondary_color">Secondary color</string>
<string name="email_icon">email icon</string>
<string name="title_activity_login_page">LoginPage</string>
<string name="prompt_email">Email@Email.com</string>
<string name="prompt_password">Password</string>
<string name="action_sign_in">Sign in or register</string>
<string name="action_sign_in_short">Sign in</string>
<string name="welcome">Your guide to York Theatre!</string>
<string name="invalid_username">Not a valid username</string>
<string name="invalid_password">Password must be >5 characters</string>
<string name="login_failed">"Login failed"</string>
<string name="login">Login</string>
<string name="Ticket">Check Your Bookings</string>
<string name="username">Stage Name</string>
<string name="email">Email Address</string>
<string name="confirm">Confirm</string>
<string name="submit">Submit</string>
<string name="action_register">Register</string>
<string name="book">Book Now</string>
<string name="filter">Filter</string>
<string name="search">Listings</string>
<string name="bookings">Your Bookings</string>
<string name="select">Pick your Tickets</string>
</resources>
\ No newline at end of file
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.PlayBill" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/royal_purple</item>
<item name="colorPrimaryVariant">@color/dark_blue</item>
<item name="colorOnPrimary">@color/parchment</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/pale_blue</item>
<item name="colorSecondaryVariant">@color/teal_700</item>
<item name="colorOnSecondary">@color/dark_blue</item>
<!-- Status bar color. -->
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
<item name="android:colorBackground">@color/royal_purple</item>
<item name="android:fontFamily">@font/allema</item>
</style>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
Sample backup rules file; uncomment and customize as necessary.
See https://developer.android.com/guide/topics/data/autobackup
for details.
Note: This file is ignored for devices older that API 31
See https://developer.android.com/about/versions/12/backup-restore
-->
<full-backup-content>
<!--
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
-->
</full-backup-content>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?><!--
Sample data extraction rules file; uncomment and customize as necessary.
See https://developer.android.com/about/versions/12/backup-restore#xml-changes
for details.
-->
<data-extraction-rules>
<cloud-backup>
<!-- TODO: Use <include> and <exclude> to control what is backed up.
<include .../>
<exclude .../>
-->
</cloud-backup>
<!--
<device-transfer>
<include .../>
<exclude .../>
</device-transfer>
-->
</data-extraction-rules>
\ No newline at end of file
package com.ysj.playbill
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm64 80v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm128 0v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H336zM64 400v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H208zm112 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H336c-8.8 0-16 7.2-16 16z"/></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"/></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>
\ No newline at end of file
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.4.1' apply false
id 'com.android.library' version '7.4.1' apply false
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
}
\ No newline at end of file
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.enableJetifier=true
\ No newline at end of file
#Thu May 11 15:07:18 BST 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
#!/usr/bin/env sh
#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=`expr $i + 1`
done
case $i in
0) set -- ;;
1) set -- "$args0" ;;
2) set -- "$args0" "$args1" ;;
3) set -- "$args0" "$args1" "$args2" ;;
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=`save "$@"`
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
exec "$JAVACMD" "$@"
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "PlayBill"
include ':app'
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