Added Android code
[wl-app.git] / Android / folioreader / res / layout / activity_content_highlight.xml
1 <?xml version="1.0" encoding="utf-8"?>\r
2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"\r
3     xmlns:app="http://schemas.android.com/apk/res-auto"\r
4     xmlns:tools="http://schemas.android.com/tools"\r
5     android:layout_width="match_parent"\r
6     android:layout_height="match_parent"\r
7     tools:context="com.folioreader.ui.folio.activity.ContentHighlightActivity">\r
8 \r
9     <android.support.v7.widget.Toolbar\r
10         android:id="@+id/toolbar"\r
11         android:layout_width="match_parent"\r
12         android:layout_height="?attr/actionBarSize"\r
13         android:layout_margin="0dp"\r
14         android:background="@color/white"\r
15         android:padding="0dp"\r
16         android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"\r
17         app:contentInsetEnd="0dp"\r
18         app:contentInsetLeft="0dp"\r
19         app:contentInsetRight="0dp"\r
20         app:contentInsetStart="0dp">\r
21 \r
22         <RelativeLayout\r
23             android:layout_width="match_parent"\r
24             android:layout_height="match_parent">\r
25 \r
26             <ImageView\r
27                 android:id="@+id/btn_close"\r
28                 android:layout_width="wrap_content"\r
29                 android:layout_height="wrap_content"\r
30                 android:layout_alignParentLeft="true"\r
31                 android:layout_centerInParent="true"\r
32                 android:layout_margin="16dp"\r
33                 android:scaleType="centerCrop"\r
34                 android:src="@drawable/ic_close_green_24dp" />\r
35 \r
36             <TextView\r
37                 android:id="@+id/tvTitle"\r
38                 android:layout_width="wrap_content"\r
39                 android:layout_height="wrap_content"\r
40                 android:layout_centerInParent="true"\r
41                 android:ellipsize="end"\r
42                 android:gravity="center"\r
43                 android:layout_toRightOf="@id/btn_close"\r
44                 android:layout_marginStart="20dp"\r
45                 android:maxLines="1"\r
46                 android:text="@string/contents"\r
47                 android:textColor="@android:color/white"\r
48                 android:textSize="19dp" />\r
49 \r
50             <LinearLayout android:id="@+id/layout_content_highlights"\r
51                 android:layout_width="170dp"\r
52                 android:layout_height="wrap_content"\r
53                 android:layout_centerHorizontal="true"\r
54                 android:layout_centerInParent="true"\r
55                 android:orientation="horizontal"\r
56                 android:padding="1.8dp">\r
57 \r
58                 <TextView\r
59                     android:id="@+id/btn_contents"\r
60                     android:layout_width="0dp"\r
61                     android:layout_height="match_parent"\r
62                     android:layout_weight="1"\r
63                     android:gravity="center|end"\r
64                     android:padding="5dp"\r
65                     android:text="@string/contents"\r
66                     android:textSize="16sp" />\r
67 \r
68                 <TextView\r
69                     android:id="@+id/btn_highlights"\r
70                     android:layout_width="0dp"\r
71                     android:layout_height="match_parent"\r
72                     android:layout_weight="1"\r
73                     android:gravity="center|start"\r
74                     android:padding="5dp"\r
75                     android:text="@string/highlights"\r
76                     android:textSize="16sp" />\r
77             </LinearLayout>\r
78 \r
79             <View\r
80                 android:id="@+id/view"\r
81                 android:layout_width="match_parent"\r
82                 android:layout_height="0.5dp"\r
83                 android:layout_alignParentBottom="true"\r
84                 android:background="@android:color/black" />\r
85         </RelativeLayout>\r
86     </android.support.v7.widget.Toolbar>\r
87 \r
88     <FrameLayout\r
89         android:id="@+id/parent"\r
90         android:layout_width="match_parent"\r
91         android:layout_height="match_parent"\r
92         android:layout_below="@id/toolbar"/>\r
93 </RelativeLayout>\r