Added Android code
[wl-app.git] / Android / folioreader / res / layout / activity_content_highlight.xml
diff --git a/Android/folioreader/res/layout/activity_content_highlight.xml b/Android/folioreader/res/layout/activity_content_highlight.xml
new file mode 100755 (executable)
index 0000000..2a48ce4
--- /dev/null
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"\r
+    xmlns:app="http://schemas.android.com/apk/res-auto"\r
+    xmlns:tools="http://schemas.android.com/tools"\r
+    android:layout_width="match_parent"\r
+    android:layout_height="match_parent"\r
+    tools:context="com.folioreader.ui.folio.activity.ContentHighlightActivity">\r
+\r
+    <android.support.v7.widget.Toolbar\r
+        android:id="@+id/toolbar"\r
+        android:layout_width="match_parent"\r
+        android:layout_height="?attr/actionBarSize"\r
+        android:layout_margin="0dp"\r
+        android:background="@color/white"\r
+        android:padding="0dp"\r
+        android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"\r
+        app:contentInsetEnd="0dp"\r
+        app:contentInsetLeft="0dp"\r
+        app:contentInsetRight="0dp"\r
+        app:contentInsetStart="0dp">\r
+\r
+        <RelativeLayout\r
+            android:layout_width="match_parent"\r
+            android:layout_height="match_parent">\r
+\r
+            <ImageView\r
+                android:id="@+id/btn_close"\r
+                android:layout_width="wrap_content"\r
+                android:layout_height="wrap_content"\r
+                android:layout_alignParentLeft="true"\r
+                android:layout_centerInParent="true"\r
+                android:layout_margin="16dp"\r
+                android:scaleType="centerCrop"\r
+                android:src="@drawable/ic_close_green_24dp" />\r
+\r
+            <TextView\r
+                android:id="@+id/tvTitle"\r
+                android:layout_width="wrap_content"\r
+                android:layout_height="wrap_content"\r
+                android:layout_centerInParent="true"\r
+                android:ellipsize="end"\r
+                android:gravity="center"\r
+                android:layout_toRightOf="@id/btn_close"\r
+                android:layout_marginStart="20dp"\r
+                android:maxLines="1"\r
+                android:text="@string/contents"\r
+                android:textColor="@android:color/white"\r
+                android:textSize="19dp" />\r
+\r
+            <LinearLayout android:id="@+id/layout_content_highlights"\r
+                android:layout_width="170dp"\r
+                android:layout_height="wrap_content"\r
+                android:layout_centerHorizontal="true"\r
+                android:layout_centerInParent="true"\r
+                android:orientation="horizontal"\r
+                android:padding="1.8dp">\r
+\r
+                <TextView\r
+                    android:id="@+id/btn_contents"\r
+                    android:layout_width="0dp"\r
+                    android:layout_height="match_parent"\r
+                    android:layout_weight="1"\r
+                    android:gravity="center|end"\r
+                    android:padding="5dp"\r
+                    android:text="@string/contents"\r
+                    android:textSize="16sp" />\r
+\r
+                <TextView\r
+                    android:id="@+id/btn_highlights"\r
+                    android:layout_width="0dp"\r
+                    android:layout_height="match_parent"\r
+                    android:layout_weight="1"\r
+                    android:gravity="center|start"\r
+                    android:padding="5dp"\r
+                    android:text="@string/highlights"\r
+                    android:textSize="16sp" />\r
+            </LinearLayout>\r
+\r
+            <View\r
+                android:id="@+id/view"\r
+                android:layout_width="match_parent"\r
+                android:layout_height="0.5dp"\r
+                android:layout_alignParentBottom="true"\r
+                android:background="@android:color/black" />\r
+        </RelativeLayout>\r
+    </android.support.v7.widget.Toolbar>\r
+\r
+    <FrameLayout\r
+        android:id="@+id/parent"\r
+        android:layout_width="match_parent"\r
+        android:layout_height="match_parent"\r
+        android:layout_below="@id/toolbar"/>\r
+</RelativeLayout>\r