-
Notifications
You must be signed in to change notification settings - Fork 7
/
activity_meme_generator.xml
123 lines (104 loc) · 4.35 KB
/
activity_meme_generator.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="accesscode.c4q.nyc.memeifyme.MemeGenerator">
<ViewSwitcher
android:id="@+id/switcher"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="4"
android:background="#00000000">
<FrameLayout
android:id="@+id/meme"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#00000000">
<ImageView
android:id="@+id/camera_image_vanilla"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<!-- How to add a stroke here? -->
<TextView
android:id="@+id/caption_top_vanilla"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center|top"
android:layout_marginTop="24dp"
android:text="@string/tap_to_edit"
android:textAllCaps="true"
android:textSize="40dp" />
<TextView
android:id="@+id/caption_bottom_vanilla"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center|bottom"
android:layout_marginBottom="24dp"
android:text="@string/tap_to_edit"
android:textAllCaps="true"
android:textSize="40dp" />
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000"
android:orientation="vertical">
<ImageView
android:id="@+id/camera_image_demotivational"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="3.5"
android:paddingTop="10dp" />
<TextView
android:id="@+id/caption_top_demotivational"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight=".75"
android:gravity="center"
android:singleLine="true"
android:text="@string/tap_to_edit"
android:textAllCaps="true"
android:textColor="#ffffff"
android:textSize="40sp" />
<TextView
android:id="@+id/caption_bottom_demotivational"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight=".75"
android:gravity="top|center"
android:text="@string/tap_to_edit"
android:textColor="#ffffff"
android:textSize="32sp" />
</LinearLayout>
</ViewSwitcher>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="horizontal">
<ToggleButton
android:id="@+id/toggle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textOff="Vanilla"
android:textOn="Demotivational" />
<Button
android:id="@+id/btn_save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/btn_save" />
<Button
android:id="@+id/btn_share"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/btn_share" />
</LinearLayout>
</LinearLayout>