This repository was archived by the owner on Jul 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathactivity_main.xml
More file actions
109 lines (96 loc) · 4.11 KB
/
Copy pathactivity_main.xml
File metadata and controls
109 lines (96 loc) · 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?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=".MainActivity">
<ScrollView
android:id="@+id/scrollView2"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="-141dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/titleTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="60dp"
android:text="Pepperoni pizza"
android:textAlignment="center"
android:textColor="#373b54"
android:textSize="24sp"
android:textStyle="bold" />
<TextView
android:id="@+id/feeTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="$9.76"
android:textAlignment="center"
android:textColor="#ff5e00"
android:textSize="24sp" />
<ImageView
android:id="@+id/picFood"
android:layout_width="match_parent"
android:layout_height="424dp"
app:srcCompat="@drawable/pizza" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal">
<ImageView
android:id="@+id/minusBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
app:srcCompat="@drawable/minus" />
<TextView
android:id="@+id/numberOrderTxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:text="1"
android:textAlignment="center"
android:textColor="#373b54"
android:textSize="24sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/plusBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
app:srcCompat="@drawable/plus" />
</LinearLayout>
<TextView
android:id="@+id/descriptionTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:text="description"
android:textColor="#686767"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
</ScrollView>
<TextView
android:id="@+id/addToCartBtn"
android:layout_width="0dp"
android:layout_height="50dp"
android:text="Add to Cart"
android:textStyle="bold"
android:elevation="3dp"
android:layout_margin="16dp"
android:background="@drawable/orange_button"
android:gravity="center"
android:textSize="23sp"
android:textColor="#ffffff"
app:layout_constraintBottom_toBottomOf="@+id/scrollView2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>