|
1 |
| -<?xml version="1.0" encoding="utf-8"?> |
2 |
| -<RelativeLayout |
3 |
| - xmlns:android="http://schemas.android.com/apk/res/android" |
4 |
| - android:id="@+id/cardItem" |
5 |
| - android:layout_width="match_parent" |
6 |
| - android:layout_height="wrap_content" |
7 |
| - style="@style/Widget.Android.AppWidget.Container" |
8 |
| - android:theme="@style/Theme.Android.AppWidgetContainer" |
9 |
| - android:background="@drawable/app_widget_item_layout_bg" |
10 |
| - android:paddingLeft="10dp" |
11 |
| - android:paddingRight="10dp" |
12 |
| - android:paddingTop="10dp" |
13 |
| - android:paddingBottom="10dp"> |
14 |
| - |
15 |
| - <TextView |
16 |
| - android:id="@+id/taskWarriorText" |
17 |
| - android:layout_width="wrap_content" |
18 |
| - android:layout_height="wrap_content" |
19 |
| - android:text="TaskWarrior" |
20 |
| - android:textSize="20sp" |
21 |
| - android:textStyle="bold" |
22 |
| - android:layout_alignParentTop="true" |
23 |
| - android:layout_centerHorizontal="true" |
24 |
| - android:layout_marginTop="12dp"/> |
25 |
| - |
26 |
| -<!-- Pending Task TextView --> |
27 |
| -<TextView |
28 |
| - android:id="@+id/pendingTaskText" |
29 |
| - android:layout_width="wrap_content" |
30 |
| - android:layout_height="wrap_content" |
31 |
| - android:text="Pending Tasks" |
32 |
| - android:textSize="18sp" |
33 |
| - android:textStyle="bold" |
34 |
| - android:layout_below="@id/taskWarriorText" |
35 |
| - android:layout_centerHorizontal="true" |
36 |
| - android:layout_marginTop="8dp"/> |
37 |
| - <LinearLayout |
38 |
| - android:id="@+id/firstLayout" |
39 |
| - android:layout_width="match_parent" |
40 |
| - android:layout_height="wrap_content" |
41 |
| - android:layout_below="@id/pendingTaskText" |
42 |
| - android:layout_marginTop="8dp" |
43 |
| - android:background="@drawable/border_style" |
44 |
| - android:layout_marginLeft="8dp" |
45 |
| - android:layout_marginRight="8dp" |
46 |
| - android:orientation="vertical" |
47 |
| - android:padding="8dp"> |
48 |
| - |
49 |
| - <TextView |
50 |
| - android:id="@+id/idTvTitle" |
51 |
| - android:layout_width="wrap_content" |
52 |
| - android:layout_height="wrap_content" |
53 |
| - android:text="Title" |
54 |
| - android:textSize="16sp" |
55 |
| - android:textStyle="bold" /> |
56 |
| - |
57 |
| - <TextView |
58 |
| - android:id="@+id/idTvDate" |
59 |
| - android:layout_width="wrap_content" |
60 |
| - android:layout_height="wrap_content" |
61 |
| - android:layout_marginTop="4dp" |
62 |
| - android:text="Subtitle" |
63 |
| - android:textColor="#666666" |
64 |
| - android:textSize="14sp" /> |
65 |
| - </LinearLayout> |
66 |
| - |
67 |
| - <LinearLayout |
68 |
| - android:id="@+id/secondLayout" |
69 |
| - android:layout_width="match_parent" |
70 |
| - android:layout_height="wrap_content" |
71 |
| - android:layout_below="@id/firstLayout" |
72 |
| - android:layout_marginTop="8dp" |
73 |
| - android:background="@drawable/border_style" |
74 |
| - android:orientation="vertical" |
75 |
| - android:layout_marginLeft="8dp" |
76 |
| - android:layout_marginRight="8dp" |
77 |
| - android:padding="8dp"> |
| 1 | +<!-- container_layout.xml --> |
78 | 2 |
|
79 |
| - <TextView |
80 |
| - android:id="@+id/idTvTitle2" |
81 |
| - android:layout_width="wrap_content" |
82 |
| - android:layout_height="wrap_content" |
83 |
| - android:text="Title" |
84 |
| - android:textSize="16sp" |
85 |
| - android:textStyle="bold" /> |
86 |
| - |
87 |
| - <TextView |
88 |
| - android:id="@+id/idTvDate2" |
89 |
| - android:layout_width="wrap_content" |
90 |
| - android:layout_height="wrap_content" |
91 |
| - android:layout_marginTop="4dp" |
92 |
| - android:text="Subtitle" |
93 |
| - android:textColor="#666666" |
94 |
| - android:textSize="14sp" /> |
95 |
| - </LinearLayout> |
96 |
| - |
97 |
| - <LinearLayout |
98 |
| - android:id="@+id/thirdLayout" |
99 |
| - android:layout_width="match_parent" |
100 |
| - android:layout_height="wrap_content" |
101 |
| - android:layout_below="@id/secondLayout" |
102 |
| - android:layout_marginTop="8dp" |
103 |
| - android:layout_marginBottom="8dp" |
| 3 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 4 | + android:id="@+id/container_layout" |
| 5 | + android:layout_width="match_parent" |
| 6 | + android:layout_height="match_parent" |
| 7 | + style="@style/Widget.Android.AppWidget.Container" |
104 | 8 | android:background="@drawable/border_style"
|
105 |
| - android:layout_marginLeft="8dp" |
106 |
| - android:layout_marginRight="8dp" |
107 |
| - android:orientation="vertical" |
108 |
| - android:padding="8dp"> |
109 |
| - |
110 |
| - <TextView |
111 |
| - android:id="@+id/idTvTitle3" |
112 |
| - android:layout_width="wrap_content" |
113 |
| - android:layout_height="wrap_content" |
114 |
| - android:text="Title" |
115 |
| - android:textSize="16sp" |
116 |
| - android:textStyle="bold" /> |
117 |
| - |
118 |
| - <TextView |
119 |
| - android:id="@+id/idTvDate3" |
120 |
| - android:layout_width="wrap_content" |
121 |
| - android:layout_height="wrap_content" |
122 |
| - android:layout_marginTop="4dp" |
123 |
| - android:text="Subtitle" |
124 |
| - android:textColor="#666666" |
125 |
| - android:textSize="14sp" /> |
126 |
| - </LinearLayout> |
127 |
| - |
128 |
| -</RelativeLayout> |
| 9 | + android:theme="@style/Theme.Android.AppWidgetContainer" |
| 10 | + android:orientation="vertical"> |
| 11 | + |
| 12 | + <!-- Title TextView --> |
| 13 | + <TextView |
| 14 | + android:id="@+id/title_textview" |
| 15 | + android:layout_width="wrap_content" |
| 16 | + android:layout_height="wrap_content" |
| 17 | + android:layout_gravity="center_horizontal" |
| 18 | + android:layout_marginTop="16dp" |
| 19 | + android:text="Task Warrior" |
| 20 | + android:textColor="#666666" |
| 21 | + android:textSize="24sp" |
| 22 | + android:textStyle="bold"/> |
| 23 | + |
| 24 | + <!-- Subtitle TextView --> |
| 25 | + <TextView |
| 26 | + android:id="@+id/subtitle_textview" |
| 27 | + android:layout_width="wrap_content" |
| 28 | + android:layout_height="wrap_content" |
| 29 | + android:layout_gravity="center_horizontal" |
| 30 | + android:textColor="#666666" |
| 31 | + android:layout_marginTop="8dp" |
| 32 | + android:text="Pending Tasks" |
| 33 | + android:textSize="18sp"/> |
| 34 | + |
| 35 | + <!-- ListView --> |
| 36 | + <ListView |
| 37 | + android:id="@+id/list_view" |
| 38 | + android:layout_width="match_parent" |
| 39 | + android:layout_height="0dp" |
| 40 | + android:layout_weight="1" |
| 41 | + android:scrollbars="vertical"/> |
| 42 | + |
| 43 | +</LinearLayout> |
0 commit comments