-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtask_item.xml
More file actions
69 lines (62 loc) · 2.65 KB
/
task_item.xml
File metadata and controls
69 lines (62 loc) · 2.65 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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="?android:attr/dividerVertical"
android:dividerPadding="12dp"
android:orientation="horizontal"
android:showDividers="middle" >
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:padding="12dp" >
<TextView
android:id="@+id/task"
style="@style/Widget.Styled.TextView.ListItem.Primary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_toLeftOf="@+id/total_time_spent"
android:singleLine="true" />
<TextView
android:id="@+id/project"
style="@style/Widget.Styled.TextView.ListItem.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_below="@+id/task"
android:layout_toLeftOf="@+id/total_time_spent"
android:singleLine="true" />
<TextView
android:id="@+id/time_spent"
style="@style/Widget.Styled.TextView.ListItem.Secondary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="5dp"
android:visibility="gone" />
<TextView
android:id="@+id/total_time_spent"
style="@style/Widget.Styled.TextView.ListItem.Secondary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/time_spent"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp" />
</RelativeLayout>
<ImageView
android:id="@+id/task_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:contentDescription="@string/start"
android:padding="12dp"
android:scaleType="centerInside"
android:src="@android:drawable/ic_media_play" />
</LinearLayout>