Added Android code
[wl-app.git] / Android / folioreader / res / layout / folio_activity.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/main"
5     android:layout_width="match_parent"
6     android:layout_height="match_parent"
7     android:orientation="vertical">
8
9     <com.folioreader.view.DirectionalViewpager
10         android:id="@+id/folioPageViewPager"
11         android:layout_below="@id/toolbar"
12         android:layout_width="match_parent"
13         android:layout_height="match_parent"
14         app:direction="vertical" />
15
16     <android.support.v7.widget.Toolbar
17         android:id="@+id/toolbar"
18         android:layout_width="match_parent"
19         android:layout_height="?attr/actionBarSize"
20         android:layout_margin="0dp"
21         android:background="@color/white"
22         android:contentInsetEnd="0dp"
23         android:contentInsetLeft="0dp"
24         android:contentInsetRight="0dp"
25         android:contentInsetStart="0dp"
26         android:padding="0dp"
27         app:contentInsetEnd="0dp"
28         app:contentInsetLeft="0dp"
29         app:contentInsetRight="0dp"
30         app:contentInsetStart="0dp">
31
32         <RelativeLayout
33             android:layout_width="match_parent"
34             android:layout_height="match_parent">
35
36             <LinearLayout
37                 android:layout_width="wrap_content"
38                 android:layout_height="match_parent"
39                 android:gravity="center_vertical"
40                 android:orientation="horizontal">
41
42                 <ImageView
43                     android:id="@+id/btn_close"
44                     android:layout_width="wrap_content"
45                     android:layout_height="wrap_content"
46                     android:padding="16dp"
47                     android:src="@drawable/ic_close_green_24dp" />
48
49                 <ImageView
50                     android:id="@+id/btn_drawer"
51                     android:layout_width="wrap_content"
52                     android:layout_height="wrap_content"
53                     android:paddingEnd="16dp"
54                     android:paddingTop="16dp"
55                     android:paddingBottom="16dp"
56                     android:src="@drawable/ic_menu_all" />
57             </LinearLayout>
58
59             <TextView
60                 android:id="@+id/lbl_center"
61                 android:layout_width="wrap_content"
62                 android:layout_height="wrap_content"
63                 android:layout_centerInParent="true"
64                 android:layout_marginEnd="96dp"
65                 android:layout_marginStart="96dp"
66                 android:ellipsize="end"
67                 android:gravity="center"
68                 android:maxLines="1"
69                 android:textColor="@android:color/black"
70                 android:textSize="19dp" />
71
72             <LinearLayout
73                 android:layout_width="wrap_content"
74                 android:layout_height="match_parent"
75                 android:layout_alignParentEnd="true"
76                 android:layout_alignParentRight="true"
77                 android:orientation="horizontal">
78
79                 <ImageView
80                     android:id="@+id/btn_config"
81                     android:layout_width="24dp"
82                     android:layout_height="24dp"
83                     android:layout_marginEnd="16dp"
84                     android:scaleType="fitCenter"
85                     android:layout_gravity="center_vertical"
86                     android:src="@drawable/font_big" />
87
88                 <ImageView
89                     android:id="@+id/btn_speaker"
90                     android:layout_width="24dp"
91                     android:layout_height="24dp"
92                     android:layout_marginStart="16dp"
93                     android:visibility="gone"
94                     android:layout_marginEnd="16dp"
95                     android:scaleType="fitCenter"
96                     android:layout_gravity="center_vertical"
97                     android:src="@drawable/ic_comment" />
98             </LinearLayout>
99
100             <View
101                 android:layout_width="match_parent"
102                 android:layout_height="0.5dp"
103                 android:layout_alignParentBottom="true"
104                 android:background="@android:color/black" />
105         </RelativeLayout>
106     </android.support.v7.widget.Toolbar>
107
108     <RelativeLayout
109         android:layout_width="match_parent"
110         android:layout_height="match_parent"
111         android:id="@+id/shade"
112         android:visibility="gone"
113         android:background="#99000000">
114
115         <include layout="@layout/view_audio_player" />
116     </RelativeLayout>
117 </RelativeLayout>