Added Android code
[wl-app.git] / Android / folioreader / res / layout / view_audio_player.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3     xmlns:app="http://schemas.android.com/apk/res-auto"
4     android:id="@+id/container"
5     android:visibility="invisible"
6     android:layout_width="match_parent"
7     android:layout_height="wrap_content"
8     android:layout_alignParentBottom="true"
9     android:background="@color/white">
10
11     <LinearLayout
12         android:id="@+id/top_buttons"
13         android:layout_width="match_parent"
14         android:layout_height="50dp"
15         android:orientation="horizontal">
16
17         <LinearLayout
18             android:layout_width="0dp"
19             android:layout_height="match_parent"
20             android:layout_weight="0.2"></LinearLayout>
21
22         <ImageButton
23             android:id="@+id/prev_button"
24             android:layout_width="0dp"
25             android:layout_height="match_parent"
26             android:layout_weight="0.2"
27             android:background="@android:color/transparent"
28             android:src="@drawable/prev_con" />
29
30         <ImageButton
31             android:id="@+id/play_button"
32             android:layout_width="0dp"
33             android:layout_height="match_parent"
34             android:layout_weight="0.2"
35             android:background="@android:color/transparent"
36             android:src="@drawable/play_icon" />
37
38         <ImageButton
39             android:id="@+id/next_button"
40             android:layout_width="0dp"
41             android:layout_height="match_parent"
42             android:layout_weight="0.2"
43             android:background="@android:color/transparent"
44             android:src="@drawable/next_icon" />
45
46         <LinearLayout
47             android:layout_width="0dp"
48             android:layout_height="match_parent"
49             android:layout_weight="0.2"></LinearLayout>
50
51     </LinearLayout>
52
53     <View
54         android:id="@+id/first_separator"
55         android:layout_width="match_parent"
56         android:layout_height="1dp"
57         android:layout_below="@+id/top_buttons"
58         android:background="@color/borders" />
59
60     <!--<android.support.v7.widget.RecyclerView
61         android:id="@+id/recycler_view_fonts"
62         android:scrollbars="horizontal"
63         android:layout_width="match_parent"
64         android:layout_height="80dp"
65         android:layout_below="@+id/first_separator"/>-->
66     <LinearLayout
67         android:id="@+id/playback_speed_Layout"
68         android:layout_width="match_parent"
69         android:layout_height="70dp"
70         android:layout_below="@+id/first_separator"
71         android:gravity="center"
72         android:orientation="horizontal"
73         android:weightSum="4.0">
74
75         <com.folioreader.view.StyleableTextView
76             android:id="@+id/btn_half_speed"
77             android:layout_width="0dp"
78             android:layout_height="match_parent"
79             android:layout_weight="1.0"
80             android:gravity="center"
81             android:text="@string/half_speed"
82             android:textSize="14sp"
83             app:folio_font="@string/andada_font" />
84
85         <com.folioreader.view.StyleableTextView
86             android:id="@+id/btn_one_x_speed"
87             android:layout_width="0dp"
88             android:layout_height="match_parent"
89             android:layout_weight="1.0"
90             android:gravity="center"
91             android:text="@string/onex"
92             android:textSize="17sp"
93             app:folio_font="@string/lato_font" />
94
95         <com.folioreader.view.StyleableTextView
96             android:id="@+id/btn_one_and_half_speed"
97             android:layout_width="0dp"
98             android:layout_height="match_parent"
99             android:layout_weight="1.0"
100             android:gravity="center"
101             android:text="@string/one_and_half"
102             android:textSize="14sp"
103             app:folio_font="@string/lora_font" />
104
105         <com.folioreader.view.StyleableTextView
106             android:id="@+id/btn_twox_speed"
107             android:layout_width="0dp"
108             android:layout_height="match_parent"
109             android:layout_weight="1.0"
110             android:gravity="center"
111             android:text="@string/two_x"
112             android:textSize="17sp"
113             app:folio_font="@string/raleway_font" />
114     </LinearLayout>
115
116     <View
117         android:id="@+id/second_separator"
118         android:layout_width="match_parent"
119         android:layout_height="1dp"
120         android:layout_below="@+id/playback_speed_Layout"
121         android:background="@color/borders" />
122
123     <LinearLayout
124         android:layout_width="match_parent"
125         android:layout_height="50dp"
126         android:layout_below="@+id/second_separator"
127         android:orientation="horizontal">
128
129         <com.folioreader.view.StyleableTextView
130             android:id="@+id/btn_backcolor_style"
131             android:layout_width="0dp"
132             android:layout_height="wrap_content"
133             android:layout_weight="1.0"
134             android:gravity="center"
135             android:text="@string/style"
136             android:textSize="17sp"
137             app:folio_font="@string/lato_font" />
138
139         <View
140             android:id="@+id/third_separator"
141             android:layout_width="1dp"
142             android:layout_height="match_parent"
143             android:background="@color/borders" />
144
145         <com.folioreader.view.StyleableTextView
146             android:id="@+id/btn_text_undeline_style"
147             android:layout_width="0dp"
148             android:layout_height="wrap_content"
149             android:layout_weight="1.0"
150             android:drawableBottom="@drawable/dottet_line"
151             android:gravity="center"
152             android:layerType="software"
153             android:text="@string/style_underline"
154             android:textSize="17sp"
155             app:folio_font="@string/lora_font" />
156
157         <View
158             android:id="@+id/fourth_separator"
159             android:layout_width="1dp"
160             android:layout_height="match_parent"
161             android:background="@color/borders" />
162
163         <com.folioreader.view.StyleableTextView
164             android:id="@+id/btn_text_color_style"
165             android:layout_width="0dp"
166             android:layout_height="match_parent"
167             android:layout_weight="1.0"
168             android:gravity="center"
169             android:text="@string/style"
170             android:textSize="17sp"
171             app:folio_font="@string/raleway_font" />
172
173     </LinearLayout>
174
175 </RelativeLayout>