Added Android code
[wl-app.git] / Android / app / src / main / res / layout / list_search.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3               xmlns:app="http://schemas.android.com/apk/res-auto"
4               xmlns:tools="http://schemas.android.com/tools"
5               android:layout_width="match_parent"
6               android:layout_height="wrap_content"
7               android:gravity="center_vertical"
8               android:orientation="horizontal"
9               android:padding="10dp">
10
11     <android.support.v7.widget.CardView
12         android:layout_width="@dimen/thumb_size"
13         android:layout_height="wrap_content"
14         app:cardCornerRadius="@dimen/thumb_corners">
15
16         <ImageView
17             android:id="@+id/ivBookCover"
18             android:layout_width="match_parent"
19             android:layout_height="wrap_content"
20             android:adjustViewBounds="true"
21             android:scaleType="fitXY"
22             android:src="@drawable/list_nocover"
23             tools:ignore="ContentDescription"/>
24     </android.support.v7.widget.CardView>
25
26     <LinearLayout
27         android:layout_width="match_parent"
28         android:layout_height="wrap_content"
29         android:orientation="vertical"
30         android:paddingEnd="10dp"
31         android:paddingStart="10dp">
32
33         <RelativeLayout
34             android:layout_width="match_parent"
35             android:layout_height="wrap_content">
36
37             <ImageButton
38                 android:id="@+id/ibDeleteEbook"
39                 android:layout_width="wrap_content"
40                 android:layout_height="wrap_content"
41                 android:layout_alignParentEnd="true"
42                 android:layout_centerVertical="true"
43                 android:background="@null"
44                 android:padding="10dp"
45                 android:src="@drawable/delete_icon_selector"
46                 android:visibility="gone"
47                 tools:ignore="ContentDescription"/>
48
49             <TextView
50                 android:id="@+id/tvBookAuthor"
51                 style="@style/ListTitleText.Black"
52                 android:layout_width="match_parent"
53                 android:layout_height="wrap_content"
54                 android:layout_toStartOf="@id/ibDeleteEbook"
55                 android:text="Juliusz SÅ‚owacki"/>
56
57             <TextView
58                 android:id="@+id/tvBookTitle"
59                 style="@style/ListHeaderText"
60                 android:layout_width="match_parent"
61                 android:layout_height="wrap_content"
62                 android:layout_below="@id/tvBookAuthor"
63                 android:layout_marginEnd="1dp"
64                 android:layout_toStartOf="@id/ibDeleteEbook"
65                 android:text="Kordian"/>
66         </RelativeLayout>
67
68         <View
69             android:layout_width="match_parent"
70             android:layout_height="1dp"
71             android:layout_marginBottom="5dp"
72             android:layout_marginTop="5dp"
73             android:background="@color/gray_dark"/>
74
75         <LinearLayout
76             android:layout_width="match_parent"
77             android:layout_height="wrap_content"
78             android:layout_marginBottom="5dp"
79             android:orientation="horizontal">
80
81             <ImageView
82                 android:id="@+id/ivEbook"
83                 android:layout_width="wrap_content"
84                 android:layout_height="wrap_content"
85                 android:layout_gravity="center_vertical"
86                 android:src="@drawable/ic_glass_mid"
87                 android:tint="@color/gray_very_dark"
88                 tools:ignore="ContentDescription"/>
89
90             <TextView
91                 android:id="@+id/tvEbookReaden"
92                 style="@style/ListTableTitleText"
93                 android:layout_width="wrap_content"
94                 android:layout_height="wrap_content"
95                 android:layout_gravity="center_vertical"
96                 android:layout_marginStart="@dimen/list_search_read_listen_status_margins"
97                 android:text="Przeczytano 50%"
98                 android:textAllCaps="false"
99                 tools:ignore="ContentDescription"/>
100
101             <ImageView
102                 android:id="@+id/ivAudioBook"
103                 android:layout_width="wrap_content"
104                 android:layout_height="wrap_content"
105                 android:layout_gravity="center_vertical"
106                 android:layout_marginStart="@dimen/list_search_read_listen_status_margins"
107                 android:src="@drawable/ic_speaker_mid"
108                 android:tint="@color/gray_very_dark"
109                 tools:ignore="ContentDescription"/>
110
111             <TextView
112                 android:id="@+id/tvAudioBookReaden"
113                 style="@style/ListTableTitleText"
114                 android:layout_width="wrap_content"
115                 android:layout_height="wrap_content"
116                 android:layout_gravity="center_vertical"
117                 android:layout_marginStart="@dimen/list_search_read_listen_status_margins"
118                 android:text="OdsÅ‚uchano 50%"
119                 android:textAllCaps="false"
120                 tools:ignore="ContentDescription"/>
121         </LinearLayout>
122
123         <TableLayout
124             android:layout_width="match_parent"
125             android:layout_height="wrap_content">
126
127             <TableRow>
128
129                 <TextView
130                     style="@style/ListTableTitleText"
131                     android:layout_width="0px"
132                     android:layout_height="wrap_content"
133                     android:layout_weight="2.6"
134                     android:text="@string/book_epoch"/>
135
136                 <TextView
137                     android:id="@+id/tvBookEpoch"
138                     style="@style/ListTitleText.Turquoise"
139                     android:layout_width="0px"
140                     android:layout_height="wrap_content"
141                     android:layout_weight="7"
142                     android:text="Romantyzm"/>
143             </TableRow>
144
145             <TableRow>
146
147                 <TextView
148                     style="@style/ListTableTitleText"
149                     android:layout_width="0px"
150                     android:layout_height="wrap_content"
151                     android:layout_weight="2.6"
152                     android:text="@string/book_kind"/>
153
154                 <TextView
155                     android:id="@+id/tvBookKind"
156                     style="@style/ListTitleText.Turquoise"
157                     android:layout_width="0px"
158                     android:layout_height="wrap_content"
159                     android:layout_weight="7"/>
160             </TableRow>
161
162             <TableRow>
163
164                 <TextView
165                     style="@style/ListTableTitleText"
166                     android:layout_width="0px"
167                     android:layout_height="wrap_content"
168                     android:layout_weight="2.6"
169                     android:text="@string/book_genre"/>
170
171                 <TextView
172                     android:id="@+id/tvBookGenre"
173                     style="@style/ListTitleText.Turquoise"
174                     android:layout_width="0px"
175                     android:layout_height="wrap_content"
176                     android:layout_weight="7"/>
177             </TableRow>
178         </TableLayout>
179     </LinearLayout>
180 </LinearLayout>