blob: e576110ebc02aa5f1ff1d8f1c230de02d5476901 (
plain)
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
124
125
126
127
128
129
130
131
|
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="10dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:gravity="center_vertical">
<LinearLayout
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:textSize="16sp"
android:textStyle="bold"
tools:text="Large text - this is a very long line of text and may break."
android:textColor="#ff161616"
android:ellipsize="end"
android:maxLines="2" />
<TextView
android:id="@+id/tv_body"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15sp"
tools:text="3 podcasts available!"
android:textColor="#ff161616" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- media playback ui should always use ltr direction -->
<ProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:id="@+id/pbDownloadPodcast"
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="match_parent"
android:gravity="center"
android:max="100"
android:progress="0"
android:layoutDirection="ltr"/>
<TextView
android:id="@+id/tvDownloadPodcastProgress"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="10dp"
tools:text="100%"
android:gravity="center_vertical"
android:textColor="#ff161616"/>
</LinearLayout>
</LinearLayout>
<FrameLayout
android:id="@+id/fl_deletePodcastWrapper"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
android:paddingEnd="@dimen/podcast_horizontal_margin">
<ImageButton
android:id="@+id/btn_deletePodcast"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:duplicateParentState="true"
android:clickable="false"
android:focusable="false"
android:layout_gravity="center"
android:background="@drawable/ic_action_delete"
android:contentDescription="@string/content_desc_delete"/>
</FrameLayout>
<FrameLayout
android:id="@+id/fl_downloadPodcastWrapper"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
android:paddingEnd="@dimen/podcast_horizontal_margin">
<ImageButton
android:id="@+id/btn_downloadPodcast"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:duplicateParentState="true"
android:clickable="false"
android:focusable="false"
android:layout_gravity="center"
android:background="@drawable/ic_action_file_download"
android:contentDescription="@string/content_desc_download"/>
</FrameLayout>
<FrameLayout
android:id="@+id/fl_PlayPodcastWrapper"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
android:paddingEnd="@dimen/podcast_horizontal_margin">
<ImageButton
android:id="@+id/btn_playPodcast"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:duplicateParentState="true"
android:clickable="false"
android:focusable="false"
android:layout_gravity="center"
app:srcCompat="@drawable/ic_baseline_play_arrow_24"
android:contentDescription="@string/content_desc_play"/>
</FrameLayout>
</LinearLayout>
|