-
Notifications
You must be signed in to change notification settings - Fork 0
/
fragment_food_card.xml
98 lines (88 loc) · 3.66 KB
/
fragment_food_card.xml
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_margin="20dp"
android:background="@android:color/white">
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<fragment
class="personalprojects.seakyluo.randommenu.fragments.ImageViewerFragment"
android:id="@+id/imageviewer_fragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<ImageView
android:id="@+id/liked_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginEnd="4dp"
android:layout_alignTop="@id/imageviewer_fragment"
android:layout_alignEnd="@id/imageviewer_fragment"
app:srcCompat="@drawable/ic_undo_like" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="8dp">
<TextView
android:id="@+id/food_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="24sp"
android:textStyle="bold"
android:layout_weight="1"
android:maxLines="1"
android:ellipsize="end"
android:layout_marginEnd="4dp" />
<ImageButton
android:id="@+id/more_button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@android:color/transparent"
android:src="@drawable/ic_dropdown" />
</LinearLayout>
<FrameLayout
android:id="@+id/tags_frame"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="8dp" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:minHeight="120dp">
<TextView
android:id="@+id/food_note_back"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/food_note_background"
android:scrollbars="vertical"
android:layout_marginHorizontal="2dp"
android:layout_marginVertical="8dp"
android:paddingHorizontal="6dp"
android:paddingVertical="4dp"/>
<TextView
android:id="@+id/food_note_front"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/food_note_background"
android:layout_marginHorizontal="2dp"
android:layout_marginVertical="8dp"
android:paddingHorizontal="6dp"
android:paddingVertical="4dp"
android:scrollbars="vertical" />
</FrameLayout>
</LinearLayout>