Added Android code
[wl-app.git] / Android / folioreader / res / layout / row_highlight.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <com.daimajia.swipe.SwipeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3     android:layout_width="match_parent"
4     android:layout_height="wrap_content">
5
6     <LinearLayout
7         android:id="@+id/swipe_linear_layout"
8         android:layout_width="160dp"
9         android:layout_height="0dp">
10
11         <ImageView
12             android:id="@+id/iv_edit_note"
13             android:layout_width="80dp"
14             android:layout_height="match_parent"
15             android:background="#8A2BE2"
16             android:paddingLeft="25dp"
17             android:paddingRight="25dp"
18             android:src="@drawable/edit_note" />
19
20         <ImageView
21             android:id="@+id/iv_delete"
22             android:layout_width="80dp"
23             android:layout_height="match_parent"
24             android:background="#FF3B30"
25             android:paddingLeft="25dp"
26             android:paddingRight="25dp"
27             android:src="@drawable/trash" />
28     </LinearLayout>
29
30     <RelativeLayout
31         android:id="@+id/container"
32         android:layout_width="match_parent"
33         android:layout_height="wrap_content"
34         android:orientation="vertical"
35         android:padding="8dp">
36
37         <TextView
38             android:id="@+id/tv_highlight_date"
39             android:layout_width="wrap_content"
40             android:layout_height="wrap_content"
41             android:text="20 sep 2016"
42             android:textColor="@color/black"
43             android:textSize="14sp"
44             android:textStyle="bold" />
45
46         <com.folioreader.view.UnderlinedTextView
47             android:id="@+id/utv_highlight_content"
48             android:layout_width="wrap_content"
49             android:layout_height="wrap_content"
50             android:layout_below="@+id/tv_highlight_date"
51             android:layout_marginBottom="8dp"
52             android:layout_marginTop="8dp"
53             android:ellipsize="end"
54             android:maxLines="3"
55             android:minLines="1"
56             android:textColor="@color/black"
57             android:textSize="17sp" />
58
59         <TextView
60             android:id="@+id/tv_note"
61             android:layout_width="wrap_content"
62             android:layout_height="wrap_content"
63             android:layout_below="@+id/utv_highlight_content"
64             android:ellipsize="end"
65             android:text=""
66             android:textColor="@color/black"
67             android:textSize="14sp" />
68     </RelativeLayout>
69 </com.daimajia.swipe.SwipeLayout>