Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Summative_Lucy_Hemingway
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lucy.hemingway
Summative_Lucy_Hemingway
Commits
20a1c387
Commit
20a1c387
authored
May 18, 2021
by
lucy.hemingway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
almost finished - colours
parent
224a9007
Changes
23
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
708 additions
and
221 deletions
+708
-221
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+2
-1
Booking.java
app/src/main/java/com/example/appppppp/Booking.java
+11
-2
FullPurchase.java
app/src/main/java/com/example/appppppp/FullPurchase.java
+13
-0
LogIn.java
app/src/main/java/com/example/appppppp/LogIn.java
+5
-0
MuseumList.java
app/src/main/java/com/example/appppppp/MuseumList.java
+8
-0
Payment.java
app/src/main/java/com/example/appppppp/Payment.java
+85
-2
Receipt.java
app/src/main/java/com/example/appppppp/Receipt.java
+66
-0
Registration.java
app/src/main/java/com/example/appppppp/Registration.java
+5
-0
SouvenirShop.java
app/src/main/java/com/example/appppppp/SouvenirShop.java
+7
-2
cafe.java
app/src/main/java/com/example/appppppp/cafe.java
+9
-2
fulldetails.java
app/src/main/java/com/example/appppppp/fulldetails.java
+4
-0
activity_booking.xml
app/src/main/res/layout/activity_booking.xml
+38
-17
activity_cafe.xml
app/src/main/res/layout/activity_cafe.xml
+89
-66
activity_full_purchase.xml
app/src/main/res/layout/activity_full_purchase.xml
+18
-4
activity_fulldetails.xml
app/src/main/res/layout/activity_fulldetails.xml
+43
-18
activity_log_in.xml
app/src/main/res/layout/activity_log_in.xml
+31
-6
activity_main_menu.xml
app/src/main/res/layout/activity_main_menu.xml
+20
-7
activity_museum_list.xml
app/src/main/res/layout/activity_museum_list.xml
+19
-5
activity_payment.xml
app/src/main/res/layout/activity_payment.xml
+39
-17
activity_receipt.xml
app/src/main/res/layout/activity_receipt.xml
+85
-0
activity_registration.xml
app/src/main/res/layout/activity_registration.xml
+25
-0
activity_souvenir_shop.xml
app/src/main/res/layout/activity_souvenir_shop.xml
+63
-64
row_museum.xml
app/src/main/res/layout/row_museum.xml
+23
-8
No files found.
app/src/main/AndroidManifest.xml
View file @
20a1c387
...
...
@@ -9,7 +9,8 @@
android:roundIcon=
"@mipmap/ic_launcher_round"
android:supportsRtl=
"true"
android:theme=
"@style/Theme.APPPPPpp"
>
<activity
android:name=
".Payment"
></activity>
<activity
android:name=
".Receipt"
></activity>
<activity
android:name=
".Payment"
/>
<activity
android:name=
".FullPurchase"
/>
<activity
android:name=
".SouvenirShop"
/>
<activity
android:name=
".cafe"
/>
...
...
app/src/main/java/com/example/appppppp/Booking.java
View file @
20a1c387
...
...
@@ -70,6 +70,8 @@ public class Booking extends AppCompatActivity {
Date
=
(
TextView
)
findViewById
(
R
.
id
.
selectdate
);
String
dateshown
=
Date
.
toString
();
Date
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
...
...
@@ -115,9 +117,11 @@ public class Booking extends AppCompatActivity {
public
void
onClick
(
View
v
)
{
int
choosen
=
radiogroup
.
getCheckedRadioButtonId
();
if
(
choosen
==
-
1
){
//prevent going to next page if button isn't pressed
//should stop if date isn't selected but this does not function
if
(
choosen
==
-
1
||
selecteddate
==
"Click Here"
){
//none selected, tell user to select
Toast
.
makeText
(
getApplicationContext
(),
"Please select a time above."
,
Toast
.
LENGTH_LONG
).
show
();
Toast
.
makeText
(
getApplicationContext
(),
"Please select a time
/date
above."
,
Toast
.
LENGTH_LONG
).
show
();
}
else
{
findRadioButton
(
choosen
);
Intent
cafe
=
new
Intent
(
getApplicationContext
(),
cafe
.
class
);
...
...
@@ -156,6 +160,11 @@ public class Booking extends AppCompatActivity {
}
}
//back to log in
public
void
backone
(
View
view
){
Intent
intent
=
new
Intent
(
getApplicationContext
(),
LogIn
.
class
);
startActivity
(
intent
);
}
}
\ No newline at end of file
app/src/main/java/com/example/appppppp/FullPurchase.java
View file @
20a1c387
...
...
@@ -55,9 +55,22 @@ public class FullPurchase extends AppCompatActivity {
public
void
onClick
(
View
v
)
{
Intent
intent
=
new
Intent
(
getApplicationContext
(),
Payment
.
class
);
intent
.
putExtra
(
"fullprice"
,
fullprice
);
intent
.
putExtra
(
"totalsouvenir"
,
totalofsouvenir
);
intent
.
putExtra
(
"totalcafe"
,
totalofcafe
);
intent
.
putExtra
(
"selectedMuseum"
,
museumname
);
intent
.
putExtra
(
"price"
,
priceofticket
);
intent
.
putExtra
(
"time"
,
time
);
intent
.
putExtra
(
"date"
,
date
);
startActivity
(
intent
);
}
});
}
public
void
backone
(
View
view
){
Intent
intent
=
new
Intent
(
getApplicationContext
(),
SouvenirShop
.
class
);
startActivity
(
intent
);
}
}
\ No newline at end of file
app/src/main/java/com/example/appppppp/LogIn.java
View file @
20a1c387
...
...
@@ -50,4 +50,9 @@ public class LogIn extends AppCompatActivity {
}
});
}
public
void
backone
(
View
view
){
Intent
intent
=
new
Intent
(
getApplicationContext
(),
MainMenu
.
class
);
startActivity
(
intent
);
}
}
\ No newline at end of file
app/src/main/java/com/example/appppppp/MuseumList.java
View file @
20a1c387
...
...
@@ -4,7 +4,9 @@ import androidx.appcompat.app.AppCompatActivity;
import
androidx.recyclerview.widget.LinearLayoutManager
;
import
androidx.recyclerview.widget.RecyclerView
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.Toast
;
import
java.util.ArrayList
;
...
...
@@ -45,4 +47,10 @@ public class MuseumList extends AppCompatActivity {
adapterObj
=
new
adapter
(
this
,
dataList
);
recyclerObj
.
setAdapter
(
adapterObj
);
}
public
void
backone
(
View
view
){
Intent
intent
=
new
Intent
(
getApplicationContext
(),
fulldetails
.
class
);
startActivity
(
intent
);
}
}
\ No newline at end of file
app/src/main/java/com/example/appppppp/Payment.java
View file @
20a1c387
...
...
@@ -4,10 +4,17 @@ 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
;
import
android.widget.Toast
;
public
class
Payment
extends
AppCompatActivity
{
TextView
pricetopay
;
TextView
pricetopay
,
input
;
Button
makepayment
;
public
static
int
price
,
totalcafe
,
totalsouvenir
;
public
static
String
selectedMuseum
,
time
,
selecteddate
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
...
...
@@ -15,10 +22,86 @@ public class Payment extends AppCompatActivity {
setContentView
(
R
.
layout
.
activity_payment
);
Intent
intent
=
getIntent
();
totalsouvenir
=
intent
.
getIntExtra
(
"totalsouvenir"
,
0
);
totalcafe
=
intent
.
getIntExtra
(
"totalcafe"
,
0
);
selectedMuseum
=
intent
.
getStringExtra
(
"selectedMuseum"
);
time
=
intent
.
getStringExtra
(
"time"
);
selecteddate
=
intent
.
getStringExtra
(
"date"
);
Integer
price
=
intent
.
getIntExtra
(
"fullprice"
,
0
);
price
=
intent
.
getIntExtra
(
"fullprice"
,
0
);
pricetopay
=
findViewById
(
R
.
id
.
fullpriceview
);
pricetopay
.
setText
(
"Total Price = £"
+
String
.
valueOf
(
price
));
makepayment
=
findViewById
(
R
.
id
.
makepayment
);
makepayment
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
input
=
findViewById
(
R
.
id
.
enteramount
);
String
inputfound
=
input
.
getText
().
toString
();
int
val
=
Integer
.
parseInt
(
inputfound
);
checkamount
(
val
);
Intent
receipt
=
new
Intent
(
getApplicationContext
(),
Receipt
.
class
);
receipt
.
putExtra
(
"pricepaid"
,
val
);
receipt
.
putExtra
(
"fullprice"
,
price
);
receipt
.
putExtra
(
"totalsouvenir"
,
totalsouvenir
);
receipt
.
putExtra
(
"totalcafe"
,
totalcafe
);
receipt
.
putExtra
(
"selectedMuseum"
,
selectedMuseum
);
receipt
.
putExtra
(
"price"
,
price
);
receipt
.
putExtra
(
"time"
,
time
);
receipt
.
putExtra
(
"date"
,
selecteddate
);
}
});
}
public
void
checkamount
(
Integer
value
){
Integer
change
=
0
;
if
(
value
==
price
){
Toast
.
makeText
(
getApplicationContext
(),
"You have successfully paid the correct amount"
,
Toast
.
LENGTH_SHORT
).
show
();
Intent
receipt
=
new
Intent
(
getApplicationContext
(),
Receipt
.
class
);
receipt
.
putExtra
(
"pricepaid"
,
value
);
receipt
.
putExtra
(
"fullprice"
,
price
);
receipt
.
putExtra
(
"totalsouvenir"
,
totalsouvenir
);
receipt
.
putExtra
(
"totalcafe"
,
totalcafe
);
receipt
.
putExtra
(
"selectedMuseum"
,
selectedMuseum
);
receipt
.
putExtra
(
"price"
,
price
);
receipt
.
putExtra
(
"time"
,
time
);
receipt
.
putExtra
(
"date"
,
selecteddate
);
startActivity
(
receipt
);
}
else
if
(
value
>
price
){
change
=
value
-
price
;
Toast
.
makeText
(
getApplicationContext
(),
"Thankyou for the purchase"
,
Toast
.
LENGTH_SHORT
).
show
();
Intent
receipt
=
new
Intent
(
getApplicationContext
(),
Receipt
.
class
);
receipt
.
putExtra
(
"pricepaid"
,
value
);
receipt
.
putExtra
(
"fullprice"
,
price
);
receipt
.
putExtra
(
"totalsouvenir"
,
totalsouvenir
);
receipt
.
putExtra
(
"totalcafe"
,
totalcafe
);
receipt
.
putExtra
(
"selectedMuseum"
,
selectedMuseum
);
receipt
.
putExtra
(
"price"
,
price
);
receipt
.
putExtra
(
"time"
,
time
);
receipt
.
putExtra
(
"date"
,
selecteddate
);
startActivity
(
receipt
);
}
else
{
Toast
.
makeText
(
getApplicationContext
(),
"You have underpaid, please retry payment"
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
public
void
backone
(
View
view
){
Intent
intent
=
new
Intent
(
getApplicationContext
(),
fulldetails
.
class
);
startActivity
(
intent
);
}
}
\ No newline at end of file
app/src/main/java/com/example/appppppp/Receipt.java
0 → 100644
View file @
20a1c387
package
com
.
example
.
appppppp
;
import
androidx.appcompat.app.AppCompatActivity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.view.View
;
import
android.widget.TextView
;
import
java.util.Random
;
public
class
Receipt
extends
AppCompatActivity
{
public
static
int
price
,
totalcafe
,
totalsouvenir
,
value
,
priceofticket
;
public
static
String
selectedMuseum
,
time
,
selecteddate
;
TextView
totalprices
;
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_receipt
);
Intent
intent
=
getIntent
();
totalsouvenir
=
intent
.
getIntExtra
(
"totalsouvenir"
,
0
);
totalcafe
=
intent
.
getIntExtra
(
"totalcafe"
,
0
);
selectedMuseum
=
intent
.
getStringExtra
(
"selectedMuseum"
);
time
=
intent
.
getStringExtra
(
"time"
);
selecteddate
=
intent
.
getStringExtra
(
"date"
);
value
=
intent
.
getIntExtra
(
"pricepaid"
,
0
);
priceofticket
=
intent
.
getIntExtra
(
"price"
,
0
);
price
=
intent
.
getIntExtra
(
"fullprice"
,
0
);
int
change
=
value
-
price
;
String
bookingid
=
randombookingnumber
();
totalprices
=
findViewById
(
R
.
id
.
completereceipt
);
totalprices
.
setText
(
"\nMuseum: "
+
selectedMuseum
+
"\n\n"
+
"Date of Visit: "
+
selecteddate
+
"\n\n"
+
"Time Slot: "
+
time
+
"\n\n"
+
"Ticket Price: £"
+
priceofticket
+
"\n\n"
+
"Cafe Total Costs: £"
+
totalcafe
+
"\n\n"
+
"Souvenir Store Total Costs: £"
+
totalsouvenir
+
"\n\n\n"
+
"Full Price Due: £"
+
price
+
"\n\n"
+
"Price Paid: £"
+
value
+
"\n\n"
+
"Change Due: £"
+
change
+
"\n\n\n"
+
"Your Booking Code (PLEASE RETAIN): "
+
bookingid
);
}
public
static
String
randombookingnumber
(){
Random
nmbr
=
new
Random
();
int
booking
=
nmbr
.
nextInt
(
999999
);
return
String
.
format
(
"%06d"
,
booking
);
}
public
void
logout
(
View
view
){
Intent
intent
=
new
Intent
(
this
,
MainMenu
.
class
);
startActivity
(
intent
);
}
public
void
tomuseums
(
View
view
){
Intent
intent
=
new
Intent
(
this
,
MuseumList
.
class
);
startActivity
(
intent
);
}
}
\ No newline at end of file
app/src/main/java/com/example/appppppp/Registration.java
View file @
20a1c387
...
...
@@ -66,4 +66,9 @@ public class Registration extends AppCompatActivity {
});
}
public
void
backone
(
View
view
){
Intent
intent
=
new
Intent
(
getApplicationContext
(),
MainMenu
.
class
);
startActivity
(
intent
);
}
}
\ No newline at end of file
app/src/main/java/com/example/appppppp/SouvenirShop.java
View file @
20a1c387
...
...
@@ -34,8 +34,8 @@ public class SouvenirShop extends AppCompatActivity {
time
=
intent
.
getStringExtra
(
"time"
);
selecteddate
=
intent
.
getStringExtra
(
"date"
);
showtotal
=
findViewById
(
R
.
id
.
cafe
);
showtotal
.
setText
(
String
.
valueOf
(
selecteddate
));
//
showtotal = findViewById(R.id.cafe);
//
showtotal.setText(String.valueOf(selecteddate));
museumshow
=
findViewById
(
R
.
id
.
museumshow2
);
museumshow
.
setText
(
String
.
valueOf
(
selectedMuseum
));
...
...
@@ -132,4 +132,9 @@ public class SouvenirShop extends AppCompatActivity {
}
});
}
public
void
backone
(
View
view
){
Intent
intent
=
new
Intent
(
getApplicationContext
(),
cafe
.
class
);
startActivity
(
intent
);
}
}
\ No newline at end of file
app/src/main/java/com/example/appppppp/cafe.java
View file @
20a1c387
...
...
@@ -133,14 +133,21 @@ public class cafe extends AppCompatActivity implements AdapterView.OnItemSelecte
}
//leave both empty, no actions needed
@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
)
{
}
//back
public
void
backone
(
View
view
){
Intent
intent
=
new
Intent
(
getApplicationContext
(),
Booking
.
class
);
startActivity
(
intent
);
}
}
\ No newline at end of file
app/src/main/java/com/example/appppppp/fulldetails.java
View file @
20a1c387
...
...
@@ -174,6 +174,10 @@ public class fulldetails extends AppCompatActivity {
startActivity
(
book
);
}
public
void
backone
(
View
view
){
Intent
intent
=
new
Intent
(
getApplicationContext
(),
MuseumList
.
class
);
startActivity
(
intent
);
}
}
...
...
app/src/main/res/layout/activity_booking.xml
View file @
20a1c387
...
...
@@ -9,7 +9,7 @@
<TextView
android:id=
"@+id/Museumname"
android:layout_width=
"3
16
dp"
android:layout_width=
"3
42
dp"
android:layout_height=
"58dp"
android:editable=
"false"
android:text=
"Museum"
...
...
@@ -17,10 +17,10 @@
android:textStyle=
"bold"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.
568
"
app:layout_constraintHorizontal_bias=
"0.
782
"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.0
5
3"
/>
app:layout_constraintVertical_bias=
"0.0
9
3"
/>
<TextView
android:id=
"@+id/selectdate"
...
...
@@ -28,13 +28,15 @@
android:layout_height=
"68dp"
android:editable=
"false"
android:text=
"Click Here"
android:textSize=
"24sp"
android:textColor=
"#E48B84"
android:textSize=
"20sp"
android:textStyle=
"italic"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.341"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/Museumname"
app:layout_constraintVertical_bias=
"0.2
1
"
/>
app:layout_constraintVertical_bias=
"0.2
23
"
/>
<TextView
android:id=
"@+id/pricehere"
...
...
@@ -56,12 +58,13 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Book Time and Date"
app:backgroundTint=
"#E48B84"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.
842
"
app:layout_constraintHorizontal_bias=
"0.
787
"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/times"
app:layout_constraintVertical_bias=
"0.
657
"
/>
app:layout_constraintVertical_bias=
"0.
743
"
/>
<TextView
android:id=
"@+id/times"
...
...
@@ -76,7 +79,7 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/selectdate"
app:layout_constraintVertical_bias=
"0.0
09
"
/>
app:layout_constraintVertical_bias=
"0.0"
/>
<TextView
android:id=
"@+id/textView5"
...
...
@@ -91,34 +94,36 @@
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.301"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/pricehere"
/>
app:layout_constraintTop_toBottomOf=
"@+id/pricehere"
app:layout_constraintVertical_bias=
"0.0"
/>
<RadioGroup
android:id=
"@+id/allbuttons"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10dp"
android:layout_marginBottom=
"20dp"
app:layout_constraintBottom_toTopOf=
"@+id/booknow"
android:layout_marginTop=
"32dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.163"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/times"
app:layout_constraintVertical_bias=
"
1.0
"
>
app:layout_constraintVertical_bias=
"
0.019
"
>
<RadioButton
android:id=
"@+id/button1"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"9-11am"
/>
android:text=
"9-11am"
app:buttonTint=
"#E48B84"
/>
<RadioButton
android:id=
"@+id/button2"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"11-1pm"
/>
android:text=
"11-1pm"
app:buttonTint=
"#E48B84"
/>
<RadioButton
...
...
@@ -126,14 +131,30 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"1-3pm"
/>
android:text=
"1-3pm"
app:buttonTint=
"#E48B84"
/>
<RadioButton
android:id=
"@+id/button4"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"3-5pm"
/>
android:text=
"3-5pm"
app:buttonTint=
"#E48B84"
/>
</RadioGroup>
<Button
android:id=
"@+id/back"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"11dp"
android:onClick=
"backone"
android:text=
"Back"
app:backgroundTint=
"#E48B84"
app:layout_constraintBottom_toTopOf=
"@+id/Museumname"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.128"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_cafe.xml
View file @
20a1c387
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/activity_full_purchase.xml
View file @
20a1c387
...
...
@@ -16,10 +16,10 @@
android:textStyle=
"bold"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.
318
"
app:layout_constraintHorizontal_bias=
"0.
437
"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.
05
"
/>
app:layout_constraintVertical_bias=
"0.
104
"
/>
<TextView
android:id=
"@+id/receipt"
...
...
@@ -31,10 +31,10 @@
android:textSize=
"16sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.49
6
"
app:layout_constraintHorizontal_bias=
"0.49
3
"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.
267
"
/>
app:layout_constraintVertical_bias=
"0.
343
"
/>
<Button
android:id=
"@+id/next"
...
...
@@ -50,4 +50,18 @@
app:layout_constraintTop_toBottomOf=
"@+id/receipt"
app:layout_constraintVertical_bias=
"0.133"
/>
<Button
android:id=
"@+id/button9"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"8dp"
android:onClick=
"backone"
android:text=
"back"
app:layout_constraintBottom_toTopOf=
"@+id/textView24"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.084"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.941"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_fulldetails.xml
View file @
20a1c387
...
...
@@ -8,42 +8,46 @@
<TextView
android:id=
"@+id/check"
android:layout_width=
"3
25
dp"
android:layout_height=
"
3
6dp"
android:layout_width=
"3
46
dp"
android:layout_height=
"
6
6dp"
android:editable=
"false"
android:fontFamily=
"serif-monospace"
android:text=
"TextView"
android:textColor=
"#000000"
android:textSize=
"24sp"
android:textStyle=
"bold"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.511"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.0
21
"
/>
app:layout_constraintVertical_bias=
"0.0
99
"
/>
<EditText
android:id=
"@+id/thetext"
android:layout_width=
"3
22
dp"
android:layout_height=
"
294
dp"
android:layout_width=
"3
33
dp"
android:layout_height=
"
310
dp"
android:editable=
"false"
android:ems=
"10"
android:fontFamily=
"serif-monospace"
android:gravity=
"start|top"
android:inputType=
"textMultiLine"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.494"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/check"
app:layout_constraintVertical_bias=
"0.5
73
"
/>
app:layout_constraintVertical_bias=
"0.5
91
"
/>
<ImageView
android:id=
"@+id/theimage"
android:layout_width=
"283dp"
android:layout_height=
"194dp"
android:layout_width=
"245dp"
android:layout_height=
"125dp"
android:layout_marginTop=
"4dp"
app:layout_constraintBottom_toTopOf=
"@+id/thetext"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/check"
app:layout_constraintVertical_bias=
"
1
.0"
app:layout_constraintVertical_bias=
"
0
.0"
tools:srcCompat=
"@tools:sample/avatars"
/>
<Button
...
...
@@ -53,38 +57,59 @@
android:layout_marginTop=
"49dp"
android:onClick=
"bookthis"
android:text=
"Book Now"
app:backgroundTint=
"#D3B8D8"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.498"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/thetext"
app:layout_constraintVertical_bias=
"0.0"
/>
<TextView
android:id=
"@+id/priceview"
android:layout_width=
"
52
dp"
android:layout_height=
"
0
dp"
android:layout_marginTop=
"1
1
dp"
android:layout_width=
"
63
dp"
android:layout_height=
"
22
dp"
android:layout_marginTop=
"1
2
dp"
android:layout_marginBottom=
"19dp"
android:editable=
"false"
android:fontFamily=
"serif-monospace"
android:text=
"price"
android:textSize=
"16sp"
app:layout_constraintBottom_toTopOf=
"@+id/book"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.
323
"
app:layout_constraintHorizontal_bias=
"0.
42
"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/thetext"
app:layout_constraintVertical_bias=
"
1
.0"
/>
app:layout_constraintVertical_bias=
"
0
.0"
/>
<TextView
android:id=
"@+id/textView2"
android:layout_width=
"
55
dp"
android:layout_height=
"
19
dp"
android:layout_width=
"
91
dp"
android:layout_height=
"
20
dp"
android:layout_marginTop=
"13dp"
android:editable=
"false"
android:fontFamily=
"serif-monospace"
android:text=
"Price: £"
android:textSize=
"16sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@+id/priceview"
app:layout_constraintHorizontal_bias=
"0.
8
2"
app:layout_constraintHorizontal_bias=
"0.
90
2"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/thetext"
app:layout_constraintVertical_bias=
"0.0"
/>
<Button
android:id=
"@+id/button10"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:fontFamily=
"serif-monospace"
android:onClick=
"backone"
android:text=
"Back"
app:backgroundTint=
"#D3B8D8"
app:layout_constraintBottom_toTopOf=
"@+id/check"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.05"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.761"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_log_in.xml
View file @
20a1c387
...
...
@@ -4,6 +4,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#FBF7D4"
tools:context=
".LogIn"
>
<EditText
...
...
@@ -11,8 +12,10 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:ems=
"10"
android:fontFamily=
"serif-monospace"
android:hint=
"Password"
android:inputType=
"numberPassword"
android:textColor=
"#000000"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.497"
...
...
@@ -22,24 +25,46 @@
<Button
android:id=
"@+id/loginlog"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"79dp"
android:layout_width=
"142dp"
android:layout_height=
"38dp"
android:layout_marginTop=
"39dp"
android:layout_marginBottom=
"336dp"
android:fontFamily=
"serif-monospace"
android:text=
"Log In"
android:textColor=
"#000000"
app:backgroundTint=
"#FFFFFF"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.46"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/passwordlog"
/>
<Button
android:id=
"@+id/bCK3"
android:layout_width=
"99dp"
android:layout_height=
"44dp"
android:background=
"#FFFFFF"
android:fontFamily=
"serif-monospace"
android:onClick=
"backone"
android:text=
"back"
android:textColor=
"#000000"
app:backgroundTint=
"#FFFFFF"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.
498
"
app:layout_constraintHorizontal_bias=
"0.
105
"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_to
BottomOf=
"@+id/passwordlog
"
app:layout_constraintVertical_bias=
"0.0"
/>
app:layout_constraintTop_to
TopOf=
"parent
"
app:layout_constraintVertical_bias=
"0.0
49
"
/>
<EditText
android:id=
"@+id/emaillog"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:ems=
"10"
android:fontFamily=
"serif-monospace"
android:hint=
"Email"
android:inputType=
"textPersonName"
android:textColor=
"#000000"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.497"
...
...
app/src/main/res/layout/activity_main_menu.xml
View file @
20a1c387
...
...
@@ -11,8 +11,11 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"75dp"
android:fontFamily=
"serif-monospace"
android:onClick=
"toRegister"
android:text=
"Register"
android:textColor=
"#605F5F"
app:backgroundTint=
"#95D7F4"
app:layout_constraintBottom_toTopOf=
"@+id/button3"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
...
@@ -21,26 +24,29 @@
<ImageView
android:id=
"@+id/imageView"
android:layout_width=
"1
29
dp"
android:layout_height=
"1
44
dp"
android:layout_width=
"1
97
dp"
android:layout_height=
"1
52
dp"
android:layout_marginTop=
"64dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:srcCompat=
"@
android:mipmap/sym_def_app_icon
"
/>
app:srcCompat=
"@
drawable/national
"
/>
<TextView
android:id=
"@+id/textView"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:editable=
"false"
android:fontFamily=
"serif-monospace"
android:text=
"VisitMuseum"
android:textSize=
"24sp"
android:textSize=
"30sp"
android:textStyle=
"bold"
app:layout_constraintBottom_toTopOf=
"@+id/button"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.498"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/imageView"
app:layout_constraintVertical_bias=
"0.
243
"
/>
app:layout_constraintVertical_bias=
"0.
086
"
/>
<Button
android:id=
"@+id/button2"
...
...
@@ -48,8 +54,11 @@
android:layout_height=
"47dp"
android:layout_marginTop=
"40dp"
android:layout_marginBottom=
"28dp"
android:fontFamily=
"serif-monospace"
android:onClick=
"toLogIn"
android:text=
"Log In Here"
android:textColor=
"#605F5F"
app:backgroundTint=
"#95D7F4"
app:layout_constraintBottom_toTopOf=
"@+id/button"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
...
@@ -57,10 +66,14 @@
<Button
android:id=
"@+id/button3"
android:layout_width=
"37dp"
android:layout_height=
"41dp"
android:layout_width=
"43dp"
android:layout_height=
"55dp"
android:fontFamily=
"serif-monospace"
android:onClick=
"toHelp"
android:text=
"?"
android:textColor=
"#605F5F"
android:textSize=
"18sp"
app:backgroundTint=
"#95D7F4"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
...
app/src/main/res/layout/activity_museum_list.xml
View file @
20a1c387
...
...
@@ -8,10 +8,24 @@
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/recyclerID"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:layout_editor_absoluteX=
"263dp"
tools:layout_editor_absoluteY=
"336dp"
/>
android:layout_width=
"412dp"
android:layout_height=
"662dp"
tools:layout_editor_absoluteX=
"0dp"
tools:layout_editor_absoluteY=
"69dp"
/>
<Button
android:id=
"@+id/button11"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"6dp"
android:onClick=
"backone"
android:text=
"back"
app:layout_constraintBottom_toTopOf=
"@+id/recyclerID"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.05"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"1.0"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_payment.xml
View file @
20a1c387
...
...
@@ -17,10 +17,10 @@
android:textStyle=
"italic"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.
534
"
app:layout_constraintHorizontal_bias=
"0.
497
"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.2
04
"
/>
app:layout_constraintVertical_bias=
"0.2
75
"
/>
<TextView
android:id=
"@+id/textView27"
...
...
@@ -33,10 +33,10 @@
android:textStyle=
"bold"
app:layout_constraintBottom_toTopOf=
"@+id/fullpriceview"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.6
29
"
app:layout_constraintHorizontal_bias=
"0.6
91
"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.
552
"
/>
app:layout_constraintVertical_bias=
"0.
75
"
/>
<TextView
android:id=
"@+id/textView28"
...
...
@@ -50,25 +50,47 @@
android:textStyle=
"bold"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.1
67
"
app:layout_constraintHorizontal_bias=
"0.1
59
"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/fullpriceview"
app:layout_constraintVertical_bias=
"0.0"
/>
app:layout_constraintVertical_bias=
"0.0
47
"
/>
<TextView
<Button
android:id=
"@+id/makepayment"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"324dp"
android:text=
"Pay"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.826"
app:layout_constraintStart_toStartOf=
"parent"
/>
<EditText
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"
android:layout_width=
"132dp"
android:layout_height=
"40dp"
android:layout_marginTop=
"60dp"
android:ems=
"10"
android:inputType=
"number"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.
0
"
app:layout_constraintStart_to
EndOf=
"@+id/textView28
"
app:layout_constraintHorizontal_bias=
"0.
86
"
app:layout_constraintStart_to
StartOf=
"parent
"
app:layout_constraintTop_toBottomOf=
"@+id/fullpriceview"
app:layout_constraintVertical_bias=
"0.0"
/>
app:layout_constraintVertical_bias=
"0.048"
/>
<Button
android:id=
"@+id/button12"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:onClick=
"backone"
android:text=
"back"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.088"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.046"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_receipt.xml
0 → 100644
View file @
20a1c387
<?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=
".Receipt"
>
<TextView
android:id=
"@+id/completereceipt"
android:layout_width=
"357dp"
android:layout_height=
"534dp"
android:text=
"TextView"
android:textSize=
"18sp"
android:textStyle=
"italic"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.497"
/>
<TextView
android:id=
"@+id/textView26"
android:layout_width=
"159dp"
android:layout_height=
"43dp"
android:layout_marginTop=
"16dp"
android:layout_marginBottom=
"16dp"
android:text=
"Receipt"
android:textColor=
"#FF77BFC8"
android:textSize=
"24sp"
android:textStyle=
"bold"
app:layout_constraintBottom_toTopOf=
"@+id/completereceipt"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.611"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.0"
/>
<Button
android:id=
"@+id/button5"
android:layout_width=
"167dp"
android:layout_height=
"43dp"
android:layout_marginBottom=
"52dp"
android:onClick=
"logout"
android:text=
"Log Out"
app:backgroundTint=
"#77BFC8"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.127"
app:layout_constraintStart_toStartOf=
"parent"
/>
<Button
android:id=
"@+id/button6"
android:layout_width=
"166dp"
android:layout_height=
"47dp"
android:layout_marginStart=
"3dp"
android:layout_marginLeft=
"3dp"
android:layout_marginEnd=
"20dp"
android:layout_marginRight=
"20dp"
android:onClick=
"tomuseums"
android:text=
"Return to Museum Menu"
android:textSize=
"12sp"
app:backgroundTint=
"#FF77BFC8"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.541"
app:layout_constraintStart_toEndOf=
"@+id/button5"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.923"
/>
<TextView
android:id=
"@+id/textView29"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"13dp"
android:text=
"Thankyou for purchasing your ticket with VisitMuseum"
android:textStyle=
"bold"
app:layout_constraintBottom_toTopOf=
"@+id/completereceipt"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/textView26"
app:layout_constraintVertical_bias=
"0.0"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
app/src/main/res/layout/activity_registration.xml
View file @
20a1c387
...
...
@@ -6,11 +6,30 @@
android:layout_height=
"match_parent"
tools:context=
".Registration"
>
<Button
android:id=
"@+id/button13"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:fontFamily=
"serif-monospace"
android:onClick=
"backone"
android:text=
"back"
android:textColor=
"#605F5F"
app:backgroundTint=
"#C0E8C1"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.088"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_bias=
"0.046"
/>
<Button
android:id=
"@+id/register"
android:layout_width=
"129dp"
android:layout_height=
"48dp"
android:fontFamily=
"serif-monospace"
android:text=
"Register"
android:textColor=
"#605F5F"
app:backgroundTint=
"#C0E8C1"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
...
...
@@ -22,8 +41,10 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:ems=
"10"
android:fontFamily=
"serif-monospace"
android:hint=
"Email"
android:inputType=
"textPersonName"
android:textColor=
"#605F5F"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.497"
...
...
@@ -36,8 +57,10 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:ems=
"10"
android:fontFamily=
"serif-monospace"
android:hint=
"Re-enter Password"
android:inputType=
"numberPassword"
android:textColor=
"#605F5F"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.497"
...
...
@@ -51,8 +74,10 @@
android:layout_height=
"wrap_content"
android:layout_marginTop=
"56dp"
android:ems=
"10"
android:fontFamily=
"serif-monospace"
android:hint=
"Password"
android:inputType=
"numberPassword"
android:textColor=
"#605F5F"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.497"
...
...
app/src/main/res/layout/activity_souvenir_shop.xml
View file @
20a1c387
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/row_museum.xml
View file @
20a1c387
...
...
@@ -5,36 +5,51 @@
android:layout_marginHorizontal=
"5dp"
android:layout_marginTop=
"5dp"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/MuseumText"
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentTop=
"true"
android:layout_alignWithParentIfMissing=
"true"
android:
gravity=
"center_vertical
"
android:
text=
"Line1
"
android:
layout_alignParentTop=
"true
"
android:
layout_alignParentRight=
"true
"
android:layout_marginTop=
"5dp"
android:layout_marginBottom=
"5dp"
android:textSize=
"18sp"
/>
android:background=
"#F6B7A3"
android:fontFamily=
"serif-monospace"
android:gravity=
"center_vertical"
android:text=
"Line1"
android:textColor=
"#000000"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/description1"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"description"
/>
android:background=
"#F6B7A3"
android:fontFamily=
"serif-monospace"
android:text=
"description"
android:textSize=
"16sp"
/>
<TextView
android:id=
"@+id/price"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"Price (£):"
/>
android:background=
"#F6B7A3"
android:fontFamily=
"serif-monospace"
android:text=
"Price (£):"
android:textSize=
"16sp"
/>
<TextView
android:id=
"@+id/PriceText"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"description of each museum"
/>
android:background=
"#F6B7A3"
android:fontFamily=
"serif-monospace"
android:text=
"description of each museum"
android:textSize=
"16sp"
android:textStyle=
"italic"
/>
<View
android:layout_width=
"match_parent"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment