forked from ankidroid/Anki-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwidget_small.xml
More file actions
83 lines (77 loc) · 3.2 KB
/
widget_small.xml
File metadata and controls
83 lines (77 loc) · 3.2 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
<FrameLayout android:id="@+id/ankidroid_widget_small_layout"
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:background="#00FFFFFF"
android:clickable="true"
android:focusable="false"
tools:layout_height="100dp"
tools:layout_width="100dp">
<ImageButton
android:id="@+id/ankidroid_widget_small_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="#00FFFFFF"
android:clickable="false"
android:contentDescription="@string/app_name"
android:focusable="false"
android:foregroundTint="@color/material_dynamic_primary60"
android:scaleType="fitCenter"
android:src="@drawable/ic_anki_dynamic" />
<ImageButton
android:id="@+id/ankidroid_widget_small_finish_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="#00FFFFFF"
android:clickable="false"
android:focusable="false"
android:scaleType="fitCenter"
android:src="@drawable/ic_anki_dynamic_finish"
android:visibility="gone" />
<RelativeLayout
android:id="@+id/ankidroid_widget_text_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="false"
android:focusable="false"
android:orientation="horizontal"
android:padding="4dip">
<!-- 7366: Using FixedTextView breaks the widget
Error inflating RemoteViews : android.view.InflateException: Binary XML file line #30:
Binary XML file line #30: Error inflating class com.ichi2.ui.FixedTextView
https://stackoverflow.com/a/6150129/-->
<TextView
android:id="@+id/widget_due"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="24sp"
android:minHeight="24sp"
android:padding="3sp"
android:background="@drawable/circle_background"
android:gravity="center"
android:singleLine="true"
android:textColor="@android:color/system_accent1_0"
android:textSize="18sp"
android:visibility="invisible"
tools:visibility="visible" />
<TextView
android:id="@+id/widget_eta"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="false"
android:background="@drawable/circle_background"
android:gravity="center"
android:padding="3sp"
android:singleLine="true"
android:minWidth="24sp"
android:minHeight="24sp"
android:textColor="@android:color/system_accent1_0"
android:textSize="14sp"
android:visibility="invisible"
tools:visibility="visible" />
</RelativeLayout>
</FrameLayout>