Pārlūkot izejas kodu

Add layout xml of PDF bookmark

cooperku_kdanmobile 5 gadi atpakaļ
vecāks
revīzija
5a9e82ff31

BIN
reader/src/main/res/drawable-hdpi/ic_format_pdf_48dp.png


BIN
reader/src/main/res/drawable-xxhdpi/ic_format_pdf_48dp.png


+ 50 - 0
reader/src/main/res/layout/item_bookmark.xml

@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="wrap_content"
+    android:layout_height="wrap_content"
+    android:orientation="horizontal">
+
+    <RelativeLayout
+        android:id="@+id/tv_fragmentPdfReaderBookmarkLvItem_rl"
+        android:layout_width="180dp"
+        android:layout_height="360dp">
+
+        <ImageView
+            android:id="@+id/iv_fragmentPdfReaderBookmarkLvItem_"
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:background="@drawable/rectangle_stroke_1_d5d5d5_ffff"
+            android:padding="1px"
+            android:scaleType="fitCenter"
+            android:src="@drawable/ic_format_pdf_48dp"/>
+
+        <TextView
+            android:id="@+id/tv_fragmentPdfReaderBookmarkLvItem_page"
+            android:layout_width="fill_parent"
+            android:layout_height="wrap_content"
+            android:layout_alignParentBottom="true"
+            android:background="#99cccccc"
+            android:gravity="center"
+            android:paddingBottom="6dp"
+            android:paddingTop="6dp"
+            android:text="1"
+            android:textColor="@color/black_87"
+            android:textSize="12sp"/>
+    </RelativeLayout>
+
+    <TextView
+        android:id="@+id/tv_fragmentPdfReaderBookmarkLvItem_name"
+        android:layout_width="0dp"
+        android:layout_height="match_parent"
+        android:layout_weight="1"
+        android:ellipsize="start"
+        android:gravity="center_vertical"
+        android:maxLines="6"
+        android:paddingLeft="4dp"
+        android:paddingRight="4dp"
+        android:text="书签"
+        android:textColor="@color/black_87"
+        android:textSize="12sp"/>
+
+</LinearLayout>

+ 34 - 0
reader/src/main/res/layout/view_bookmark.xml

@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/ll_fragmentPdfReaderBookmark"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:gravity="center_horizontal"
+    android:orientation="vertical">
+
+    <TextView
+        android:id="@+id/tv_fragmentPdfReaderBookmark_"
+        android:layout_width="wrap_content"
+        android:layout_height="30dp"
+        android:drawableLeft="@drawable/ic_pagelist_title_bookmk"
+        android:gravity="center_vertical"
+        android:text="@string/bookmark_title"
+        android:textColor="#afafaf"
+        android:textSize="12sp"/>
+
+    <View
+        android:layout_width="fill_parent"
+        android:layout_height="1dp"
+        android:background="#1a000000"/>
+
+    <android.support.v7.widget.RecyclerView
+        android:id="@+id/id_km_bookmark_recycler"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:layout_below="@+id/id_km_thumb_divider"
+        android:layout_centerHorizontal="true"
+        android:cacheColorHint="@null"
+        android:fadeScrollbars="true"
+        android:scrollbars="vertical"/>
+</LinearLayout>