/
my_widget.xml
45 lines (40 loc) · 1.43 KB
/
my_widget.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
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:background="#33000000"
android:padding="8dp">
<ImageView
android:id="@+id/taps_image"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/ns"/>
<TextView
android:id="@+id/taps_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_margin="8dp"
android:text="0"
android:textColor="#ffffff"
android:textSize="30sp"
android:textStyle="bold" />
<TextView
android:id="@+id/appwidget_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_margin="8dp"
android:text="TAPS"
android:textColor="#ffffff"
android:textSize="24sp" />
<Button
android:id="@+id/tap_button"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="TOUCH ME!"/>
</LinearLayout>