Commit 224a9007 authored by lucy.hemingway's avatar lucy.hemingway

almost finished - need payment

parent 185a6c3b
......@@ -9,7 +9,11 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.APPPPPpp">
<activity android:name=".Registration"></activity>
<activity android:name=".Payment"></activity>
<activity android:name=".FullPurchase" />
<activity android:name=".SouvenirShop" />
<activity android:name=".cafe" />
<activity android:name=".Registration" />
<activity android:name=".LogIn" />
<activity android:name=".Booking" />
<activity android:name=".fulldetails" />
......
......@@ -52,10 +52,12 @@ class adapter extends RecyclerView.Adapter<adapter.ViewHolder> {
holder.MuseumText.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
String picked = myMuseums.get(position).price;
Integer priceofticket = Integer.parseInt(price);
Intent intent = new Intent(v.getContext(), fulldetails.class);
intent.putExtra ( "selectedMuseum", myMuseums.get(position).name);
intent.putExtra("price", myMuseums.get(position).price);
intent.putExtra("price", priceofticket);
v.getContext().startActivity(intent);
}
......
......@@ -15,6 +15,7 @@ import android.widget.DatePicker;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;
import android.widget.Toast;
import org.w3c.dom.Text;
......@@ -26,12 +27,19 @@ import java.util.Date;
public class Booking extends AppCompatActivity {
public static String price;
public static Integer price;
public static String selectedMuseum;
RadioGroup choosetime;
RadioButton booknow;
public static String time;
public static String selecteddate;
RadioGroup radiogroup;
RadioButton choose;
TextView text;
Button book;
......@@ -55,7 +63,7 @@ public class Booking extends AppCompatActivity {
Intent intent = getIntent();
selectedMuseum = intent.getStringExtra("selectedMuseum");
price = intent.getStringExtra("price");
price = intent.getIntExtra("price",0);
museumname.setText("Selected Museum: " + selectedMuseum);
priceofmuseum.setText("Price: £" + price);
......@@ -92,28 +100,62 @@ public class Booking extends AppCompatActivity {
String datechosen = dayOfMonth + "/" + month + "/" + year;
Date.setText(datechosen);
selecteddate = datechosen;
}
};
text = findViewById(R.id.selected);
radiogroup = findViewById(R.id.allbuttons);
book = findViewById(R.id.booknow);
text = findViewById(R.id.selected);
choosetime = findViewById(R.id.allbuttons);
Button booknow = findViewById(R.id.booknow);
booknow.setOnClickListener(new View.OnClickListener(){
book.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v) {
@Override
public void onClick(View v) {
int selectedradio = choosetime.getCheckedRadioButtonId();
choosetime = findViewById(selectedradio);
text.setText("you selected: " + choosetime.toString());
int choosen = radiogroup.getCheckedRadioButtonId();
if(choosen == -1){
//none selected, tell user to select
Toast.makeText(getApplicationContext(),"Please select a time above.", Toast.LENGTH_LONG).show();
}else {
findRadioButton(choosen);
Intent cafe = new Intent (getApplicationContext(), cafe.class);
cafe.putExtra("time",time);
cafe.putExtra("date",selecteddate);
cafe.putExtra("selectedMuseum",selectedMuseum);
cafe.putExtra("price",price);
startActivity(cafe);
}
}
});
}
});
}
private void findRadioButton(int choosen) {
//switch case to change the variable time to the correct time selected by the user
switch(choosen){
case R.id.button1:
time = "9-11pm";
break;
case R.id.button2:
time = "11-1pm";
break;
case R.id.button3:
time = "1-3pm";
break;
case R.id.button4:
time = "3-5pm";
break;
}
}
}
\ No newline at end of file
package com.example.appppppp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class FullPurchase extends AppCompatActivity {
TextView museum,ticket,cafe,souvenir;
TextView totalprices;
Button next;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_full_purchase);
Intent intent = getIntent();
String museumname = intent.getStringExtra("selectedMuseum");
int priceofticket = intent.getIntExtra("price",0);
String time = intent.getStringExtra("time");
String date = intent.getStringExtra("date");
int totalofcafe = intent.getIntExtra("totalcafe",0);
int totalofsouvenir = intent.getIntExtra("totalsouvenir",0);
//add up to show customer full price they need to pay
int fullprice = priceofticket + totalofcafe + totalofsouvenir;
// museum = findViewById(R.id.museum);
// ticket = findViewById(R.id.ticket);
// cafe = findViewById(R.id.cafe1);
// souvenir = findViewById(R.id.souvenir);
// museum.setText(museumname);
// ticket.setText(String.valueOf(priceofticket));
// cafe.setText(String.valueOf(totalofcafe));
/// souvenir.setText(String.valueOf(totalofsouvenir));
totalprices = findViewById(R.id.receipt);
totalprices.setText("\nMuseum: " + museumname + "\n\n" + "Date of Visit: " + date + "\n\n" + "Time Slot: " + time + "\n\n" + "Ticket Price: £" + priceofticket + "\n\n" + "Cafe Total Costs: £" + totalofcafe + "\n\n" + "Souvenir Store Total Costs: £" +
totalofsouvenir + "\n\n\n" + "Full Price Due: £" + fullprice);
next = findViewById(R.id.next);
next.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent (getApplicationContext(), Payment.class);
intent.putExtra("fullprice",fullprice);
startActivity(intent);
}
});
}
}
\ No newline at end of file
......@@ -20,7 +20,7 @@ public class MuseumList extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_museum_list);
Toast.makeText(getApplicationContext(), "Welcome, you are logged in.", Toast.LENGTH_LONG).show();
Toast.makeText(getApplicationContext(), "Welcome, you are logged in.", Toast.LENGTH_SHORT).show();
// data to populate the recyclerview with
......
package com.example.appppppp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
public class Payment extends AppCompatActivity {
TextView pricetopay;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_payment);
Intent intent = getIntent();
Integer price = intent.getIntExtra("fullprice",0);
pricetopay = findViewById(R.id.fullpriceview);
pricetopay.setText("Total Price = £" + String.valueOf(price));
}
}
\ No newline at end of file
package com.example.appppppp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
public class SouvenirShop extends AppCompatActivity {
public static String selectedMuseum;
public static String time;
public static String selecteddate;
public static Integer price;
public static Integer totalcafe;
Button purchase;
TextView showtotal,museumshow;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_souvenir_shop);
Intent intent = getIntent();
totalcafe = intent.getIntExtra("totalcafe",0);
selectedMuseum = intent.getStringExtra("selectedMuseum");
price = intent.getIntExtra("price",0);
time = intent.getStringExtra("time");
selecteddate = intent.getStringExtra("date");
showtotal = findViewById(R.id.cafe);
showtotal.setText(String.valueOf(selecteddate));
museumshow = findViewById(R.id.museumshow2);
museumshow.setText(String.valueOf(selectedMuseum));
Spinner spinner8 = findViewById(R.id.spinner8);
ArrayAdapter<String> adapter8 = new ArrayAdapter<String>(SouvenirShop.this, android.R.layout.simple_list_item_1,getResources().getStringArray(R.array.values2));
adapter8.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner8.setAdapter(adapter8);
Spinner spinner9 = findViewById(R.id.spinner9);
ArrayAdapter<String> adapter9 = new ArrayAdapter<String>(SouvenirShop.this, android.R.layout.simple_list_item_1,getResources().getStringArray(R.array.values2));
adapter9.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner9.setAdapter(adapter9);
Spinner spinner10 = findViewById(R.id.spinner10);
ArrayAdapter<String> adapter10 = new ArrayAdapter<String>(SouvenirShop.this, android.R.layout.simple_list_item_1,getResources().getStringArray(R.array.values2));
adapter10.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner10.setAdapter(adapter10);
Spinner spinner11 = findViewById(R.id.spinner11);
ArrayAdapter<String> adapter11 = new ArrayAdapter<String>(SouvenirShop.this, android.R.layout.simple_list_item_1,getResources().getStringArray(R.array.values2));
adapter11.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner11.setAdapter(adapter11);
Spinner spinner12 = findViewById(R.id.spinner12);
ArrayAdapter<String> adapter12 = new ArrayAdapter<String>(SouvenirShop.this, android.R.layout.simple_list_item_1,getResources().getStringArray(R.array.values2));
adapter12.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner12.setAdapter(adapter12);
Spinner spinner13 = findViewById(R.id.spinner13);
ArrayAdapter<String> adapter13 = new ArrayAdapter<String>(SouvenirShop.this, android.R.layout.simple_list_item_1,getResources().getStringArray(R.array.values2));
adapter13.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner13.setAdapter(adapter13);
Spinner spinner14 = findViewById(R.id.spinner14);
ArrayAdapter<String> adapter14 = new ArrayAdapter<String>(SouvenirShop.this, android.R.layout.simple_list_item_1,getResources().getStringArray(R.array.values2));
adapter14.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner14.setAdapter(adapter14);
purchase = findViewById(R.id.purchase);
purchase.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// get value selected from each spinner
String shirt = spinner8.getSelectedItem().toString();
String hat = spinner9.getSelectedItem().toString();
String snowglobe = spinner10.getSelectedItem().toString();
String keychain = spinner11.getSelectedItem().toString();
String bottle = spinner12.getSelectedItem().toString();
String mug = spinner13.getSelectedItem().toString();
String coaster = spinner14.getSelectedItem().toString();
// convert from string to int
int shirt1 = Integer.parseInt(shirt);
int hat1 = Integer.parseInt(hat);
int snowglobe1 = Integer.parseInt(snowglobe);
int keychain1 = Integer.parseInt(keychain);
int bottle1 = Integer.parseInt(bottle);
int mug1 = Integer.parseInt(mug);
int coaster1 = Integer.parseInt(coaster);
// multiply the quantity by the price to get correct amount to pay in cafe
shirt1 = shirt1 * 10;
hat1 = hat1 * 5;
snowglobe1 = snowglobe1 * 5;
keychain1 = keychain1 * 5;
bottle1 = bottle1 * 5;
mug1 = mug1 * 5;
coaster1 = coaster1 * 2;
int totalsouvenir = shirt1 + hat1 + snowglobe1 + keychain1 + bottle1 + mug1 + coaster1;
// Toast.makeText(getApplicationContext(),shirt1 + ", " + hat1, Toast.LENGTH_SHORT).show();
Intent next = new Intent (SouvenirShop.this, FullPurchase.class);
next.putExtra("totalsouvenir",totalsouvenir);
next.putExtra("totalcafe",totalcafe);
next.putExtra("selectedMuseum",selectedMuseum);
next.putExtra("price",price);
next.putExtra("time",time);
next.putExtra("date",selecteddate);
startActivity(next);
}
});
}
}
\ No newline at end of file
package com.example.appppppp;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
public class cafe extends AppCompatActivity implements AdapterView.OnItemSelectedListener {
public static Integer price;
public static String selectedMuseum;
public static String time;
public static String selecteddate;
private Spinner spinnertea;
Button submit;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_cafe);
Intent intent = getIntent();
selectedMuseum = intent.getStringExtra("selectedMuseum");
price = intent.getIntExtra("price",0);
time = intent.getStringExtra("time");
selecteddate = intent.getStringExtra("date");
((TextView)findViewById(R.id.museumshow)).setText(String.valueOf(selectedMuseum));
Spinner spinner = findViewById(R.id.spinner1);
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,R.array.values, android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapter);
spinner.setOnItemSelectedListener(this);
Spinner spinner2 = findViewById(R.id.spinner2);
ArrayAdapter<CharSequence> adapter2 = ArrayAdapter.createFromResource(this,R.array.values, android.R.layout.simple_spinner_item);
adapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner2.setAdapter(adapter2);
spinner2.setOnItemSelectedListener(this);
Spinner spinner3 = findViewById(R.id.spinner3);
ArrayAdapter<CharSequence> adapter3 = ArrayAdapter.createFromResource(this,R.array.values, android.R.layout.simple_spinner_item);
adapter3.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner3.setAdapter(adapter3);
spinner3.setOnItemSelectedListener(this);
Spinner spinner4 = findViewById(R.id.spinner4);
ArrayAdapter<CharSequence> adapter4 = ArrayAdapter.createFromResource(this,R.array.values, android.R.layout.simple_spinner_item);
adapter4.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner4.setAdapter(adapter4);
spinner4.setOnItemSelectedListener(this);
Spinner spinner5 = findViewById(R.id.spinner5);
ArrayAdapter<CharSequence> adapter5 = ArrayAdapter.createFromResource(this,R.array.values, android.R.layout.simple_spinner_item);
adapter5.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner5.setAdapter(adapter);
spinner5.setOnItemSelectedListener(this);
Spinner spinner6 = findViewById(R.id.spinner6);
ArrayAdapter<CharSequence> adapter6 = ArrayAdapter.createFromResource(this,R.array.values, android.R.layout.simple_spinner_item);
adapter6.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner6.setAdapter(adapter6);
spinner6.setOnItemSelectedListener(this);
Spinner spinner7 = findViewById(R.id.spinner7);
ArrayAdapter<CharSequence> adapter7 = ArrayAdapter.createFromResource(this,R.array.values, android.R.layout.simple_spinner_item);
adapter7.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner7.setAdapter(adapter7);
spinner7.setOnItemSelectedListener(this);
submit = findViewById(R.id.submitbutton);
submit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// get value selected from each spinner
String tea = spinner.getSelectedItem().toString();
String water = spinner2.getSelectedItem().toString();
String coffee = spinner3.getSelectedItem().toString();
String flatbread = spinner4.getSelectedItem().toString();
String sandwich = spinner5.getSelectedItem().toString();
String sweetroll = spinner6.getSelectedItem().toString();
String salad = spinner7.getSelectedItem().toString();
// convert from string to int
int tea1 = Integer.parseInt(tea);
int water1 = Integer.parseInt(water);
int coffee1 = Integer.parseInt(coffee);
int flatbread1 = Integer.parseInt(flatbread);
int sandwich1 = Integer.parseInt(sandwich);
int sweetroll1 = Integer.parseInt(sweetroll);
int salad1 = Integer.parseInt(salad);
// multiply the quantity by the price to get correct amount to pay in cafe
tea1 = tea1 * 1;
water1 = water1 * 1;
coffee1 = coffee1 * 2;
flatbread1 = flatbread1 * 2;
sandwich1 = sandwich1 * 2;
sweetroll1 = sweetroll1 * 2;
salad1 = salad1 * 2;
int totalcafe = tea1 + water1 + coffee1 + flatbread1 + sandwich1 + sweetroll1 + salad1;
// Toast.makeText(getApplicationContext(),salad1 + ", " + sandwich1, Toast.LENGTH_SHORT).show();
Intent Souvenir = new Intent (cafe.this, SouvenirShop.class);
Souvenir.putExtra("totalcafe", totalcafe);
Souvenir.putExtra("selectedMuseum",selectedMuseum);
Souvenir.putExtra("price",price);
Souvenir.putExtra("time",time);
Souvenir.putExtra("date",selecteddate);
startActivity(Souvenir);
}
});
}
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
String text = parent.getItemAtPosition(position).toString();
Toast.makeText(parent.getContext(),text,Toast.LENGTH_SHORT).show();
}
@Override
public void onNothingSelected(AdapterView<?> parent) {
}
}
\ No newline at end of file
......@@ -13,7 +13,7 @@ public class fulldetails extends AppCompatActivity {
//variables for next page if this museum is selected
public static String price;
public static Integer price;
public static String selectedMuseum;
......@@ -24,8 +24,8 @@ public class fulldetails extends AppCompatActivity {
setContentView(R.layout.activity_fulldetails);
Intent intent = getIntent();
selectedMuseum = intent.getStringExtra("selectedMuseum");
price = intent.getStringExtra("price");
((TextView)findViewById(R.id.priceview)).setText(price);
price = intent.getIntExtra("price",0);
((TextView)findViewById(R.id.priceview)).setText(String.valueOf(price));
((TextView)findViewById(R.id.check)).setText(selectedMuseum);
setDetail(selectedMuseum);
// setvariables(selectedMuseum);
......@@ -83,7 +83,7 @@ public class fulldetails extends AppCompatActivity {
// i= 3;
((ImageView)findViewById(R.id.theimage)).setImageResource(R.drawable.vatican);
((ImageView)findViewById(R.id.theimage)).setImageResource(R.drawable.vatican);
((TextView)findViewById(R.id.thetext)).setText( "The Vatican Museums are the public art and sculpture museums in the Vatican City. They display works from the immense " +
"collection amassed by the Catholic Church and the papacy throughout the centuries " +
......@@ -162,12 +162,7 @@ public class fulldetails extends AppCompatActivity {
((TextView)findViewById(R.id.thetext)).setText("Not Added");
break;
}
//send price and name of museum to next page
// Bundle n = getIntent().getExtras();
// Intent book = new Intent (this, Booking.class);
// book.putExtra("mname", mname);
// book.putExtra("price",price);
// book.putExtra("i",i);
}
......@@ -181,66 +176,6 @@ public class fulldetails extends AppCompatActivity {
}
/* public void setvariables(String museum){
if(museum.equals("Louvre")){
price = 10;
mname = "louvre";
}
else if (museum.equals("National Museum of China")){
price = 10;
mname = "National Museum of China";
}
else if (museum.equals("Vatican Museums")){
price = 10;
mname = "Vatican Museums";
}
else if (museum.equals("Metropolitan Museum of Art")){
price = 10;
mname = "Metropolitan Museum of Art";
}
else if (museum.equals("British Museum")){
price = 10;
mname = "British Museum";
}
else if (museum.equals("Tate Modern")){
price = 5;
mname = "Tate Modern";
}
else if (museum.equals("National Gallery")){
price = 5;
mname = "National Gallery";
}
else if (museum.equals("Natural History Museum")){
price = 5;
mname = "Natural History Museum";
}
else if (museum.equals("American Museum of Natural History")){
price = 5;
mname = "American Museum of Natural History";
}
else if (museum.equals("State Hermitage Museum")){
price = 5;
mname = "State Hermitage Museum";
}
Bundle n = getIntent().getExtras();
Intent book = new Intent (this, Booking.class);
book.putExtra("mname", mname);
book.putExtra("price",price);
bookthis = (Button)findViewById(R.id.book);
bookthis.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(book);
}
});
}*/
}
......@@ -7,11 +7,11 @@
tools:context=".Booking">
<TextView
android:id="@+id/Museumname"
android:layout_width="316dp"
android:layout_height="58dp"
android:editable="false"
android:text="Museum"
android:textSize="18sp"
android:textStyle="bold"
......@@ -26,6 +26,7 @@
android:id="@+id/selectdate"
android:layout_width="253dp"
android:layout_height="68dp"
android:editable="false"
android:text="Click Here"
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="parent"
......@@ -40,8 +41,11 @@
android:layout_width="209dp"
android:layout_height="29dp"
android:layout_marginTop="12dp"
android:layout_marginBottom="78dp"
android:editable="false"
android:text="price : £"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/selectdate"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.267"
app:layout_constraintStart_toStartOf="parent"
......@@ -64,18 +68,22 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:editable="false"
android:text="Select a Time for Your Visit:"
android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/selectdate" />
app:layout_constraintTop_toBottomOf="@+id/selectdate"
app:layout_constraintVertical_bias="0.009" />
<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="28dp"
android:editable="false"
android:text="Select a Date to Visit:"
android:textSize="24sp"
android:textStyle="bold"
......@@ -99,42 +107,33 @@
app:layout_constraintVertical_bias="1.0">
<RadioButton
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:text="9-11am" />
<RadioButton
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:text="11-1pm" />
<RadioButton
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:text="1-3pm" />
<RadioButton
android:id="@+id/button4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:text="3-5pm" />
</RadioGroup>
<TextView
android:id="@+id/selected"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="117dp"
android:text="TextView"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.47"
app:layout_constraintStart_toEndOf="@+id/allbuttons"
app:layout_constraintTop_toBottomOf="@+id/times"
app:layout_constraintVertical_bias="0.0" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
This diff is collapsed.
<?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=".FullPurchase">
<TextView
android:id="@+id/textView24"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:editable="false"
android:text="Your Full Purchase:"
android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.318"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.05" />
<TextView
android:id="@+id/receipt"
android:layout_width="334dp"
android:layout_height="364dp"
android:clickable="false"
android:editable="false"
android:text="TextView"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.496"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.267" />
<Button
android:id="@+id/next"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="44dp"
android:editable="false"
android:text="Continue To Payment"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/receipt"
app:layout_constraintVertical_bias="0.133" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -10,6 +10,7 @@
android:id="@+id/textView10"
android:layout_width="319dp"
android:layout_height="366dp"
android:editable="false"
android:text="Welcome to MuseumApp, a friendly and efficient service to help you book your upcoming museum trips. With the current situation of Covid-19, the team of MuseumApp have created an easy and safe application to aid future trips. Simply Log In or Register an account on the menu page to begin selecting and booking your museum trips. You must have a valid email address to create an account. "
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
......@@ -34,6 +35,7 @@
android:id="@+id/textView11"
android:layout_width="262dp"
android:layout_height="37dp"
android:editable="false"
android:text=" Help and Guidance"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
android:textSize="24sp"
......
......@@ -33,6 +33,7 @@
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:editable="false"
android:text="VisitMuseum"
android:textSize="24sp"
app:layout_constraintBottom_toTopOf="@+id/button"
......
<?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=".Payment">
<TextView
android:id="@+id/fullpriceview"
android:layout_width="220dp"
android:layout_height="37dp"
android:clickable="false"
android:editable="false"
android:text="price"
android:textSize="18sp"
android:textStyle="italic"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.534"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.204" />
<TextView
android:id="@+id/textView27"
android:layout_width="171dp"
android:layout_height="31dp"
android:clickable="false"
android:editable="false"
android:text="Payment"
android:textSize="22sp"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/fullpriceview"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.629"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.552" />
<TextView
android:id="@+id/textView28"
android:layout_width="179dp"
android:layout_height="25dp"
android:layout_marginTop="67dp"
android:clickable="false"
android:editable="false"
android:text="Enter Amount to Pay:"
android:textSize="18sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.167"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/fullpriceview"
app:layout_constraintVertical_bias="0.0" />
<TextView
android:id="@+id/enteramount"
android:layout_width="109dp"
android:layout_height="24dp"
android:layout_marginStart="27dp"
android:layout_marginLeft="27dp"
android:layout_marginTop="68dp"
android:text="TextView"
android:textSize="18sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/textView28"
app:layout_constraintTop_toBottomOf="@+id/fullpriceview"
app:layout_constraintVertical_bias="0.0" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
This diff is collapsed.
<resources>
<string name="app_name">APPPPPpp</string>
<string-array name="values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
<string-array name="values2">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>
</resources>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment