Added Android code
[wl-app.git] / Android / app / src / main / res / layout / fragment_player_controls.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <android.support.constraint.ConstraintLayout
3     xmlns:android="http://schemas.android.com/apk/res/android"
4     xmlns:app="http://schemas.android.com/apk/res-auto"
5     xmlns:tools="http://schemas.android.com/tools"
6     android:layout_width="match_parent"
7     android:layout_height="wrap_content"
8     tools:ignore="HardcodedText,SpUsage,ContentDescription, RtlSymmetry">
9
10     <ImageButton
11         android:id="@+id/ibToggleList"
12         android:layout_width="wrap_content"
13         android:layout_height="wrap_content"
14         android:background="@null"
15         android:paddingBottom="10dp"
16         android:paddingEnd="20dp"
17         android:paddingStart="20dp"
18         android:paddingTop="10dp"
19         android:src="@drawable/toggle_selector"
20         app:layout_constraintEnd_toEndOf="parent"
21         app:layout_constraintStart_toStartOf="parent"
22         app:layout_constraintTop_toTopOf="parent"/>
23
24     <LinearLayout
25         android:id="@+id/llArtistContainer"
26         android:layout_width="match_parent"
27         android:layout_height="wrap_content"
28         android:layout_marginTop="10dp"
29         android:orientation="vertical"
30         app:layout_constraintTop_toBottomOf="@id/ibToggleList">
31
32         <TextView
33             android:id="@+id/tvArtist"
34             style="@style/BookHeaderDarkTextView"
35             android:layout_width="match_parent"
36             android:layout_height="wrap_content"
37             android:gravity="center_horizontal"
38             android:text="Rozdział I"
39             android:textAllCaps="true"
40             android:textSize="16dp"/>
41     </LinearLayout>
42
43     <LinearLayout
44         android:id="@+id/llPlayerHeader"
45         android:layout_width="match_parent"
46         android:layout_height="wrap_content"
47         android:gravity="center_vertical"
48         android:orientation="horizontal"
49         android:paddingEnd="20dp"
50         android:paddingStart="20dp"
51         app:layout_constraintTop_toBottomOf="@id/llArtistContainer">
52
53         <ImageButton
54             android:id="@+id/ibPrevious"
55             android:layout_width="wrap_content"
56             android:layout_height="wrap_content"
57             android:layout_weight="0"
58             android:background="@null"
59             android:paddingBottom="@dimen/player_button_padding"
60             android:paddingEnd="10dp"
61             android:paddingTop="@dimen/player_button_padding"
62             android:src="@drawable/prev_selector"/>
63
64         <TextView
65             android:id="@+id/tvChapterTitle"
66             style="@style/BookHeaderDarkTextView"
67             android:layout_width="match_parent"
68             android:layout_height="wrap_content"
69             android:layout_weight="1"
70             android:ellipsize="end"
71             android:gravity="center"
72             android:maxLines="3"
73             android:text="Dziady. Poema Upiór"
74             android:textSize="22dp"/>
75
76         <ImageButton
77             android:id="@+id/ibNext"
78             android:layout_width="wrap_content"
79             android:layout_height="match_parent"
80             android:layout_weight="0"
81             android:background="@null"
82             android:paddingBottom="@dimen/player_button_padding"
83             android:paddingStart="10dp"
84             android:paddingTop="@dimen/player_button_padding"
85             android:src="@drawable/next_selector"/>
86
87     </LinearLayout>
88
89     <View
90         android:id="@+id/vPlayerSeparator"
91         android:layout_width="match_parent"
92         android:layout_height="1dp"
93         android:layout_marginEnd="30dp"
94         android:layout_marginStart="30dp"
95         android:layout_marginTop="15dp"
96         android:background="@color/gray_dark"
97         app:layout_constraintTop_toBottomOf="@id/llPlayerHeader"/>
98
99     <TextView
100         android:id="@+id/tvCurrentProgress"
101         android:layout_width="wrap_content"
102         android:layout_height="wrap_content"
103         android:layout_marginTop="15dp"
104         android:text="1:20:37"
105         android:textColor="@color/turquoise"
106         android:textSize="13dp"
107         app:layout_constraintStart_toStartOf="@+id/sbPlayerProgress"
108         app:layout_constraintTop_toBottomOf="@id/vPlayerSeparator"/>
109
110     <TextView
111         android:id="@+id/tvTotalProgress"
112         android:layout_width="wrap_content"
113         android:layout_height="wrap_content"
114         android:layout_marginTop="15dp"
115         android:text="2:20:31"
116         android:textColor="@color/turquoise"
117         android:textSize="13dp"
118         app:layout_constraintEnd_toEndOf="@+id/sbPlayerProgress"
119         app:layout_constraintTop_toBottomOf="@id/vPlayerSeparator"/>
120
121     <android.support.v7.widget.AppCompatSeekBar
122         android:id="@+id/sbPlayerProgress"
123         android:layout_width="match_parent"
124         android:layout_height="wrap_content"
125         android:layout_marginLeft="35dp"
126         android:layout_marginRight="35dp"
127         android:maxHeight="3dp"
128         android:minHeight="2dp"
129         android:progressDrawable="@drawable/seekbar_progress"
130         app:layout_constraintEnd_toEndOf="parent"
131         app:layout_constraintStart_toStartOf="parent"
132         app:layout_constraintTop_toBottomOf="@id/tvCurrentProgress"/>
133
134     <LinearLayout
135         android:id="@+id/llPlayerButtons"
136         android:layout_width="wrap_content"
137         android:layout_height="wrap_content"
138         android:orientation="horizontal"
139         app:layout_constraintEnd_toEndOf="parent"
140         app:layout_constraintStart_toStartOf="parent"
141         app:layout_constraintTop_toBottomOf="@id/sbPlayerProgress">
142
143         <ImageButton
144             android:id="@+id/ibRewind"
145             android:layout_width="match_parent"
146             android:layout_height="match_parent"
147             android:background="@null"
148             android:padding="@dimen/player_button_padding"
149             android:src="@drawable/prev_con_selector"
150             tools:ignore="ContentDescription"/>
151
152         <ImageButton
153             android:id="@+id/ibPlayPause"
154             android:layout_width="match_parent"
155             android:layout_height="wrap_content"
156             android:background="@null"
157             android:padding="@dimen/player_button_padding"
158             android:src="@drawable/play_selector"
159             tools:ignore="ContentDescription"/>
160
161         <ImageButton
162             android:id="@+id/ibFastForward"
163             android:layout_width="match_parent"
164             android:layout_height="match_parent"
165             android:background="@null"
166             android:padding="@dimen/player_button_padding"
167             android:src="@drawable/next_icon_selector"
168             tools:ignore="ContentDescription"/>
169
170     </LinearLayout>
171 </android.support.constraint.ConstraintLayout>