Commit 19c926ce authored by chris.crook's avatar chris.crook

> bigboi 2

parent 68f28ee7
......@@ -33,6 +33,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
......
......@@ -9,7 +9,9 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Summative_Chris_Crook">
<activity android:name=".PasswordSettings"></activity>
<activity android:name=".CheckoutScreen"></activity>
<activity android:name=".BookingDetails" />
<activity android:name=".PasswordSettings" />
<activity android:name=".CurrencySelect" />
<activity android:name=".LanguageSelect" />
<activity android:name=".Settings" />
......
......@@ -7,6 +7,8 @@ import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import java.io.File;
......@@ -19,6 +21,100 @@ public class AdminMenu extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_admin_menu);
String filename2 = "appdatatxt";
File file2;
file2 = new File(getApplicationContext().getFilesDir(), filename2 + ".txt");
String temp = "";
try {
Scanner reader = new Scanner(file2);
while (reader.hasNextLine()) {
temp = temp + reader.nextLine();
}
} catch (Exception e) { }
String [] temploadarray = temp.split("&");
//bugfixing stuff
Toast.makeText(getApplicationContext(), temp, Toast.LENGTH_LONG).show();
for (int i = 0; i < temploadarray.length; i++){
Toast.makeText(getApplicationContext(), temploadarray [i], Toast.LENGTH_LONG).show();
}
if (temploadarray [4].equals("ENG")){ //load english button names
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView4)).setText("Main Menu");
((Button)findViewById(R.id.button5)).setText("Log Out");
((Button)findViewById(R.id.button15)).setText("Bookings");
((Button)findViewById(R.id.button16)).setText("Shop");
((Button)findViewById(R.id.button17)).setText("Cart and checkout");
((Button)findViewById(R.id.button24)).setText("Settings");
((Button)findViewById(R.id.button22)).setText("Delete Account");
((TextView)findViewById(R.id.textView15)).setText("Admin Menu");
((Button)findViewById(R.id.button6)).setText("Reset app");
((Button)findViewById(R.id.button9)).setText("Display all logins");
((Button)findViewById(R.id.button13)).setText("Register page (admin)");
((Button)findViewById(R.id.button43)).setText("Clear all bookings");
}
else if (temploadarray [4].equals("FRA")){ //load french button names
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView4)).setText("Menu principal");
((Button)findViewById(R.id.button5)).setText("se déconnecter");
((Button)findViewById(R.id.button15)).setText("réservation");
((Button)findViewById(R.id.button16)).setText("boutique");
((Button)findViewById(R.id.button17)).setText("chariot et caisse");
((Button)findViewById(R.id.button24)).setText("Paramètres");
((Button)findViewById(R.id.button22)).setText("supprimer le compte");
((TextView)findViewById(R.id.textView15)).setText("Admin Menu (FR)");
((Button)findViewById(R.id.button6)).setText("Reset app (FR)");
((Button)findViewById(R.id.button9)).setText("Display all logins (FR)");
((Button)findViewById(R.id.button13)).setText("Register page (admin) (FR)");
((Button)findViewById(R.id.button43)).setText("Clear all bookings (FR)");
}
else if (temploadarray [4].equals("ESP")){ //load spanish button names
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView4)).setText("Menú principal");
((Button)findViewById(R.id.button5)).setText("espalda");
((Button)findViewById(R.id.button15)).setText("Bookings (ESP)");
((Button)findViewById(R.id.button16)).setText("Shop (ESP)");
((Button)findViewById(R.id.button17)).setText("Cart and checkout (ESP)");
((Button)findViewById(R.id.button24)).setText("Settings (ESP)");
((Button)findViewById(R.id.button22)).setText("Delete Account (ESP)");
((TextView)findViewById(R.id.textView15)).setText("Admin Menu (ESP)");
((Button)findViewById(R.id.button6)).setText("Reset app (ESP)");
((Button)findViewById(R.id.button9)).setText("Display all logins (ESP)");
((Button)findViewById(R.id.button13)).setText("Register page (admin) (ESP)");
((Button)findViewById(R.id.button43)).setText("Clear all bookings (ESP)");
}
else if (temploadarray [4].equals("DEU")){ //load german button names
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView4)).setText("Hauptmenü");
((Button)findViewById(R.id.button5)).setText("rückseite");
((Button)findViewById(R.id.button15)).setText("Bookings (DE)");
((Button)findViewById(R.id.button16)).setText("Shop (DE)");
((Button)findViewById(R.id.button17)).setText("Cart and checkout (DE)");
((Button)findViewById(R.id.button24)).setText("Settings (DE)");
((Button)findViewById(R.id.button22)).setText("Delete Account (DE)");
((TextView)findViewById(R.id.textView15)).setText("Admin Menu (DE)");
((Button)findViewById(R.id.button6)).setText("Reset app (DE)");
((Button)findViewById(R.id.button9)).setText("Display all logins (DE)");
((Button)findViewById(R.id.button13)).setText("Register page (admin) (DE)");
((Button)findViewById(R.id.button43)).setText("Clear all bookings (DE)");
}
else{ //load a default set of button names
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((Button)findViewById(R.id.button4)).setText("Back (something broke)");
((Button)findViewById(R.id.button15)).setText("Bookings (something broke)");
((Button)findViewById(R.id.button16)).setText("Shop (something broke)");
((Button)findViewById(R.id.button20)).setText("Cart and checkout (something broke)");
((Button)findViewById(R.id.button24)).setText("Settings (something broke)");
((Button)findViewById(R.id.button22)).setText("Delete Account (something broke)");
((TextView)findViewById(R.id.textView15)).setText("Admin Menu");
((Button)findViewById(R.id.button6)).setText("Reset app");
((Button)findViewById(R.id.button9)).setText("Display all logins");
((Button)findViewById(R.id.button13)).setText("Register page (admin)");
((Button)findViewById(R.id.button43)).setText("Clear all bookings");
}
}
public void goback (View view){
......@@ -203,4 +299,20 @@ public class AdminMenu extends AppCompatActivity {
msgbox.create().show();
}
public void ShutItAllDown (View view){
Toast.makeText(getApplicationContext(), "", Toast.LENGTH_SHORT).show();
File file4;
String filename4 = "Bookings";
file4 = new File(getApplicationContext().getFilesDir(), filename4 + ".txt");
try{
FileWriter stream = new FileWriter(file4, false);
stream.append("0%0%0%0&0%0%0%0");
stream.close();
Toast.makeText(getApplicationContext(), "Bookings reset", Toast.LENGTH_SHORT).show();
} catch(Exception e){
Toast.makeText(getApplicationContext(), "write error", Toast.LENGTH_SHORT).show();
}
}
}
\ No newline at end of file
package com.example.summative_chris_crook;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import java.io.File;
import java.util.Scanner;
public class CheckoutScreen extends AppCompatActivity {
String filename1 = "magicwords";
String filename2 = "appdatatxt";
File file1;
File file2;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_checkout_screen);
file2 = new File(getApplicationContext().getFilesDir(), filename2 + ".txt");
String temp = "";
try {
Scanner reader = new Scanner(file2);
while (reader.hasNextLine()) {
temp = temp + reader.nextLine();
}
} catch (Exception e) { }
String [] temploadarray = temp.split("&");
if (temploadarray [4].equals("ENG")){
//
((TextView)findViewById(R.id.textView23)).setText("Checkout");
((Button)findViewById(R.id.button62)).setText("Back");
}
else if (temploadarray [4].equals("FRA")){
//
((TextView)findViewById(R.id.textView23)).setText("chariot et caisse");
((Button)findViewById(R.id.button62)).setText("de retour");
}
else if (temploadarray [4].equals("ESP")){
//
((TextView)findViewById(R.id.textView23)).setText("Checkout (ESP)");
((Button)findViewById(R.id.button62)).setText("espalda");
}
else if (temploadarray [4].equals("DEU")){
//
((TextView)findViewById(R.id.textView23)).setText("Checkout (DE)");
((Button)findViewById(R.id.button62)).setText("rückseite");
}
else{
//
}
String [] passed = temp.split("&"); // id,name,city,country,price
String filename6 = "Booking_" + passed[1] + passed[0];
File file6;
file6 = new File(getApplicationContext().getFilesDir(), filename6 + ".txt");
String read = "";
try {
Scanner reader = new Scanner(file6);
while (reader.hasNextLine()) {
read = read + reader.nextLine();
}
} catch (Exception e) { }
((EditText)findViewById(R.id.outputcheckout)).setText(read);
}
public void gobackfromtheshop (View view){
//
file2 = new File(getApplicationContext().getFilesDir(), filename2 + ".txt");
String temp = "";
try {
Scanner reader = new Scanner(file2);
while (reader.hasNextLine()) {
temp = temp + reader.nextLine();
}
} catch (Exception e) { }
String [] temploadarray = temp.split("&");
if (temploadarray [2].equals("ADMIN")){
Intent intent = new Intent(this,AdminMenu.class);
startActivity(intent);
return;
}
else if (temploadarray [2].equals("SUPER")){
Intent intent = new Intent(this,AdminMenu.class);
startActivity(intent);
return;
}
else{
Intent intent = new Intent(this,UserMenu.class);
startActivity(intent);
return;
}
}
public void toshop (View view){
Intent intent = new Intent(this,MainShopPage.class);
startActivity(intent);
}
public void tobookings (View view){
Intent intent = new Intent(this,MainBookingPage.class);
startActivity(intent);
}
}
\ No newline at end of file
......@@ -6,9 +6,11 @@ import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import java.io.File;
import java.io.FileWriter;
import java.util.Scanner;
public class CurrencySelect extends AppCompatActivity {
......@@ -36,22 +38,31 @@ public class CurrencySelect extends AppCompatActivity {
if (temploadarray [4].equals("ENG")){
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView19)).setText("Currency Selection");
((Button)findViewById(R.id.button35)).setText("Back");
// ((Button)findViewById(R.id.button38)).setText("Pounds (£)");
// ((Button)findViewById(R.id.button39)).setText("Back");
// ((Button)findViewById(R.id.button40)).setText("Back");
// ((Button)findViewById(R.id.button41)).setText("Back");
}
else if (temploadarray [4].equals("FRA")){
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView19)).setText("Paramètres de devise");
((Button)findViewById(R.id.button35)).setText("de retour");
}
else if (temploadarray [4].equals("ESP")){
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView19)).setText("Configuración de divisas");
((Button)findViewById(R.id.button35)).setText("espalda");
}
else if (temploadarray [4].equals("DEU")){
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView19)).setText("Währungseinstellungen");
((Button)findViewById(R.id.button35)).setText("rückseite");
}
else{
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView19)).setText("Currency Selection");
((Button)findViewById(R.id.button35)).setText("Back (something broke)");
}
}
......@@ -60,4 +71,148 @@ public class CurrencySelect extends AppCompatActivity {
Intent intent = new Intent(this,Settings.class);
startActivity(intent);
}
public void PoundMe (View view){
String filename2 = "appdatatxt";
File file2;
//
file2 = new File(getApplicationContext().getFilesDir(), filename2 + ".txt");
String temp = "";
try {
Scanner reader = new Scanner(file2);
while (reader.hasNextLine()) {
temp = temp + reader.nextLine();
}
} catch (Exception e) {
Toast.makeText(getApplicationContext(), "Internal File Error", Toast.LENGTH_LONG).show();
}
String [] temploadarray = temp.split("&");
//format: name,password,adminflag,currency,language
temploadarray [3] = "£";
String writetotemp = "";
for (int i = 0; i < temploadarray.length; i++){
writetotemp += temploadarray [i];
if (i < (temploadarray.length)-1){
writetotemp += "&";
}
}
try{
FileWriter stream = new FileWriter(file2, false);
stream.append(writetotemp);
stream.close();
} catch(Exception e){
Toast.makeText(getApplicationContext(), "Internal File Error", Toast.LENGTH_LONG).show();
}
}
public void EuroVision (View view){
String filename2 = "appdatatxt";
File file2;
//
file2 = new File(getApplicationContext().getFilesDir(), filename2 + ".txt");
String temp = "";
try {
Scanner reader = new Scanner(file2);
while (reader.hasNextLine()) {
temp = temp + reader.nextLine();
}
} catch (Exception e) {
Toast.makeText(getApplicationContext(), "Internal File Error", Toast.LENGTH_LONG).show();
}
String [] temploadarray = temp.split("&");
//format: name,password,adminflag,currency,language
temploadarray [3] = "€";
String writetotemp = "";
for (int i = 0; i < temploadarray.length; i++){
writetotemp += temploadarray [i];
if (i < (temploadarray.length)-1){
writetotemp += "&";
}
}
try{
FileWriter stream = new FileWriter(file2, false);
stream.append(writetotemp);
stream.close();
} catch(Exception e){
Toast.makeText(getApplicationContext(), "Internal File Error", Toast.LENGTH_LONG).show();
}
}
public void ThisIsAmerica (View view){
String filename2 = "appdatatxt";
File file2;
//
file2 = new File(getApplicationContext().getFilesDir(), filename2 + ".txt");
String temp = "";
try {
Scanner reader = new Scanner(file2);
while (reader.hasNextLine()) {
temp = temp + reader.nextLine();
}
} catch (Exception e) {
Toast.makeText(getApplicationContext(), "Internal File Error", Toast.LENGTH_LONG).show();
}
String [] temploadarray = temp.split("&");
//format: name,password,adminflag,currency,language
temploadarray [3] = "US$";
String writetotemp = "";
for (int i = 0; i < temploadarray.length; i++){
writetotemp += temploadarray [i];
if (i < (temploadarray.length)-1){
writetotemp += "&";
}
}
try{
FileWriter stream = new FileWriter(file2, false);
stream.append(writetotemp);
stream.close();
} catch(Exception e){
Toast.makeText(getApplicationContext(), "Internal File Error", Toast.LENGTH_LONG).show();
}
}
public void BestDisneyland (View view){
String filename2 = "appdatatxt";
File file2;
//
file2 = new File(getApplicationContext().getFilesDir(), filename2 + ".txt");
String temp = "";
try {
Scanner reader = new Scanner(file2);
while (reader.hasNextLine()) {
temp = temp + reader.nextLine();
}
} catch (Exception e) {
Toast.makeText(getApplicationContext(), "Internal File Error", Toast.LENGTH_LONG).show();
}
String [] temploadarray = temp.split("&");
//format: name,password,adminflag,currency,language
temploadarray [3] = "HK$";
String writetotemp = "";
for (int i = 0; i < temploadarray.length; i++){
writetotemp += temploadarray [i];
if (i < (temploadarray.length)-1){
writetotemp += "&";
}
}
try{
FileWriter stream = new FileWriter(file2, false);
stream.append(writetotemp);
stream.close();
} catch(Exception e){
Toast.makeText(getApplicationContext(), "Internal File Error", Toast.LENGTH_LONG).show();
}
}
}
\ No newline at end of file
......@@ -6,6 +6,7 @@ import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import java.io.File;
......@@ -35,7 +36,8 @@ public class Settings extends AppCompatActivity {
String [] temploadarray = temp.split("&");
if (temploadarray [4].equals("ENG")){
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
//Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView16)).setText("Settings");
((Button)findViewById(R.id.button25)).setText("Back");
((Button)findViewById(R.id.button27)).setText("Language");
((Button)findViewById(R.id.button28)).setText("Currency");
......@@ -43,7 +45,8 @@ public class Settings extends AppCompatActivity {
((Button)findViewById(R.id.button30)).setText("Details");
}
else if (temploadarray [4].equals("FRA")){
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
//Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView16)).setText("Paramètres");
((Button)findViewById(R.id.button25)).setText("de retour");
((Button)findViewById(R.id.button27)).setText("Langue");
((Button)findViewById(R.id.button28)).setText("monnaie");
......@@ -51,7 +54,8 @@ public class Settings extends AppCompatActivity {
((Button)findViewById(R.id.button30)).setText("Détails");
}
else if (temploadarray [4].equals("ESP")){
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
//Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView16)).setText("Configuración");
((Button)findViewById(R.id.button25)).setText("espalda");
((Button)findViewById(R.id.button27)).setText("lenguaje");
((Button)findViewById(R.id.button28)).setText("moneda");
......@@ -59,7 +63,8 @@ public class Settings extends AppCompatActivity {
((Button)findViewById(R.id.button30)).setText("detalles");
}
else if (temploadarray [4].equals("DEU")){
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
//Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView16)).setText("Einstellungen");
((Button)findViewById(R.id.button25)).setText("rückseite");
((Button)findViewById(R.id.button27)).setText("Sprache");
((Button)findViewById(R.id.button28)).setText("Währung");
......@@ -68,6 +73,7 @@ public class Settings extends AppCompatActivity {
}
else{
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView16)).setText("Settings");
((Button)findViewById(R.id.button25)).setText("Back (something broke)");
}
}
......
......@@ -6,6 +6,7 @@ import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import java.io.File;
......@@ -38,7 +39,8 @@ public class UserMenu extends AppCompatActivity {
}
if (temploadarray [4].equals("ENG")){ //load english button names
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
//Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView3)).setText("Main Menu");
((Button)findViewById(R.id.button4)).setText("Log Out");
((Button)findViewById(R.id.button18)).setText("Bookings");
((Button)findViewById(R.id.button19)).setText("Shop");
......@@ -47,7 +49,8 @@ public class UserMenu extends AppCompatActivity {
((Button)findViewById(R.id.button21)).setText("Delete Account");
}
else if (temploadarray [4].equals("FRA")){ //load french button names
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
//Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView3)).setText("Menu principal");
((Button)findViewById(R.id.button4)).setText("se déconnecter");
((Button)findViewById(R.id.button18)).setText("réservation");
((Button)findViewById(R.id.button19)).setText("boutique");
......@@ -56,7 +59,8 @@ public class UserMenu extends AppCompatActivity {
((Button)findViewById(R.id.button21)).setText("supprimer le compte");
}
else if (temploadarray [4].equals("ESP")){ //load spanish button names
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
//Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView3)).setText("Menú principal");
((Button)findViewById(R.id.button4)).setText("espalda");
((Button)findViewById(R.id.button18)).setText("Bookings");
((Button)findViewById(R.id.button19)).setText("Shop");
......@@ -65,7 +69,8 @@ public class UserMenu extends AppCompatActivity {
((Button)findViewById(R.id.button21)).setText("Delete Account");
}
else if (temploadarray [4].equals("DEU")){ //load german button names
Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
//Toast.makeText(getApplicationContext(), temploadarray [4], Toast.LENGTH_LONG).show();
((TextView)findViewById(R.id.textView3)).setText("Hauptmenü");
((Button)findViewById(R.id.button4)).setText("rückseite");
((Button)findViewById(R.id.button18)).setText("Bookings");
((Button)findViewById(R.id.button19)).setText("Shop");
......
......@@ -84,5 +84,11 @@
android:onClick="register2electricboogaloo"
android:text="Register page (admin)" />
<Button
android:id="@+id/button43"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="ShutItAllDown" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".BookingDetails">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:layout_editor_absoluteX="137dp"
tools:layout_editor_absoluteY="148dp">
<TextView
android:id="@+id/textView24"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Booking Details" />
<Button
android:id="@+id/button48"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="goback"
android:text="Back" />
<Button
android:id="@+id/button57"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="timeslot1"
android:text="9:00-11:00" />
<Button
android:id="@+id/button58"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="timeslot2"
android:text="11:00-13:00" />
<Button
android:id="@+id/button59"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="timeslot3"
android:text="13:00-15:00" />
<Button
android:id="@+id/button60"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="timeslot4"
android:text="15:00-17:00" />
<EditText
android:id="@+id/YEET2"
android:layout_width="match_parent"
android:layout_height="0px"
android:ems="10"
android:inputType="textPersonName"
android:text="Name" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".CheckoutScreen">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:layout_editor_absoluteY="244dp">
<TextView
android:id="@+id/textView23"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Checkout" />
<Button
android:id="@+id/button62"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="gobackfromtheshop"
android:text="Menu" />
<Button
android:id="@+id/button63"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="tobookings"
android:text="Booking" />
<Button
android:id="@+id/button64"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="toshop"
android:text="Shop" />
<EditText
android:id="@+id/outputcheckout"
android:layout_width="match_parent"
android:layout_height="523dp"
android:ems="10"
android:inputType="textPersonName" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -25,5 +25,33 @@
android:layout_height="wrap_content"
android:onClick="goback"
android:text="Back" />
<Button
android:id="@+id/button38"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="PoundMe"
android:text="GBP (£)" />
<Button
android:id="@+id/button39"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="EuroVision"
android:text="Euro (€)" />
<Button
android:id="@+id/button40"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="ThisIsAmerica"
android:text="USD ($)" />
<Button
android:id="@+id/button41"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="BestDisneyland"
android:text="HKD ($)" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment