Added Android code
[wl-app.git] / Android / folioreader / res / layout / view_config.xml
diff --git a/Android/folioreader/res/layout/view_config.xml b/Android/folioreader/res/layout/view_config.xml
new file mode 100755 (executable)
index 0000000..eaac533
--- /dev/null
@@ -0,0 +1,213 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<RelativeLayout android:id="@+id/container"\r
+                xmlns:android="http://schemas.android.com/apk/res/android"\r
+                xmlns:app="http://schemas.android.com/apk/res-auto"\r
+                android:layout_width="match_parent"\r
+                android:layout_height="wrap_content"\r
+                android:background="@color/white">\r
+\r
+    <LinearLayout\r
+        android:id="@+id/top_buttons"\r
+        android:layout_width="match_parent"\r
+        android:layout_height="50dp"\r
+        android:orientation="horizontal">\r
+\r
+        <ImageButton\r
+            android:id="@+id/day_button"\r
+            android:layout_width="0dp"\r
+            android:layout_height="match_parent"\r
+            android:layout_weight="0.5"\r
+            android:background="@android:color/transparent"\r
+            android:src="@drawable/icon_sun_normal"/>\r
+\r
+        <ImageButton\r
+            android:id="@+id/night_button"\r
+            android:layout_width="0dp"\r
+            android:layout_height="match_parent"\r
+            android:layout_weight="0.5"\r
+            android:background="@android:color/transparent"\r
+            android:src="@drawable/icon_moon_normal"/>\r
+    </LinearLayout>\r
+\r
+    <View\r
+        android:id="@+id/first_separator"\r
+        android:layout_width="match_parent"\r
+        android:layout_height="1dp"\r
+        android:layout_below="@+id/top_buttons"\r
+        android:layout_marginEnd="20dp"\r
+        android:layout_marginStart="20dp"\r
+        android:background="@color/grey_color"/>\r
+\r
+    <LinearLayout\r
+        android:id="@+id/fontLayout"\r
+        android:layout_width="match_parent"\r
+        android:layout_height="50dp"\r
+        android:layout_below="@+id/first_separator"\r
+        android:gravity="center"\r
+        android:orientation="horizontal"\r
+        android:weightSum="4.0">\r
+\r
+        <com.folioreader.view.StyleableTextView\r
+            android:id="@+id/btn_font_ebgaramond"\r
+            android:layout_width="0dp"\r
+            android:layout_height="wrap_content"\r
+            android:layout_weight="1.0"\r
+            android:gravity="center"\r
+            android:text="@string/ebgaramond"\r
+            android:textSize="17sp"\r
+            app:folio_font="@string/ebgaramond_font"/>\r
+\r
+        <com.folioreader.view.StyleableTextView\r
+            android:id="@+id/btn_font_lato"\r
+            android:layout_width="0dp"\r
+            android:layout_height="wrap_content"\r
+            android:layout_weight="1.0"\r
+            android:gravity="center"\r
+            android:text="@string/lato"\r
+            android:textSize="17sp"\r
+            app:folio_font="@string/lato_font"/>\r
+\r
+        <com.folioreader.view.StyleableTextView\r
+            android:id="@+id/btn_font_lora"\r
+            android:layout_width="0dp"\r
+            android:layout_height="wrap_content"\r
+            android:layout_weight="1.0"\r
+            android:gravity="center"\r
+            android:text="@string/lora"\r
+            android:textSize="17sp"\r
+            app:folio_font="@string/lora_font"/>\r
+\r
+        <com.folioreader.view.StyleableTextView\r
+            android:id="@+id/btn_font_raleway"\r
+            android:layout_width="0dp"\r
+            android:layout_height="wrap_content"\r
+            android:layout_weight="1.0"\r
+            android:gravity="center"\r
+            android:text="@string/raleway"\r
+            android:textSize="17sp"\r
+            app:folio_font="@string/raleway_font"/>\r
+    </LinearLayout>\r
+\r
+    <View\r
+        android:id="@+id/second_separator"\r
+        android:layout_width="match_parent"\r
+        android:layout_height="1dp"\r
+        android:layout_below="@+id/fontLayout"\r
+        android:layout_marginEnd="20dp"\r
+        android:layout_marginStart="20dp"\r
+        android:background="@color/grey_color"/>\r
+\r
+    <RelativeLayout\r
+        android:id="@+id/font_size_layout"\r
+        android:layout_width="match_parent"\r
+        android:layout_height="wrap_content"\r
+        android:layout_below="@+id/second_separator"\r
+        android:orientation="horizontal">\r
+\r
+        <ImageView\r
+            android:id="@+id/small_font"\r
+            android:layout_width="@dimen/config_icon_width"\r
+            android:layout_height="wrap_content"\r
+            android:layout_centerVertical="true"\r
+            android:padding="8dp"\r
+            android:src="@drawable/font_small"\r
+            android:tint="@color/config_gray"/>\r
+\r
+        <SeekBar\r
+            android:id="@+id/seekbar_font_size"\r
+            android:layout_width="match_parent"\r
+            android:layout_height="wrap_content"\r
+            android:layout_toLeftOf="@+id/big_font"\r
+            android:layout_toRightOf="@+id/small_font"\r
+            android:max="4"\r
+            android:maxHeight="0.2dp"\r
+            android:minHeight="0.2dp"\r
+            android:padding="16dp"/>\r
+\r
+        <ImageView\r
+            android:id="@+id/big_font"\r
+            android:layout_width="@dimen/config_icon_width"\r
+            android:layout_height="wrap_content"\r
+            android:layout_alignParentRight="true"\r
+            android:layout_centerVertical="true"\r
+            android:padding="8dp"\r
+            android:src="@drawable/font_big"\r
+            android:tint="@color/config_gray"/>\r
+    </RelativeLayout>\r
+\r
+    <RelativeLayout\r
+        android:id="@+id/margin_size_layout"\r
+        android:layout_width="match_parent"\r
+        android:layout_height="wrap_content"\r
+        android:layout_below="@+id/font_size_layout"\r
+        android:orientation="horizontal">\r
+\r
+        <ImageView\r
+            android:id="@+id/small_margin"\r
+            android:layout_width="@dimen/config_icon_width"\r
+            android:layout_height="wrap_content"\r
+            android:layout_centerVertical="true"\r
+            android:padding="8dp"\r
+            android:src="@drawable/margin_small"\r
+            android:tint="@color/config_gray"/>\r
+\r
+        <SeekBar\r
+            android:id="@+id/seekbar_margin_size"\r
+            android:layout_width="match_parent"\r
+            android:layout_height="wrap_content"\r
+            android:layout_toLeftOf="@+id/big_margin"\r
+            android:layout_toRightOf="@+id/small_margin"\r
+            android:max="4"\r
+            android:maxHeight="0.2dp"\r
+            android:minHeight="0.2dp"\r
+            android:padding="16dp"/>\r
+\r
+        <ImageView\r
+            android:id="@+id/big_margin"\r
+            android:layout_width="@dimen/config_icon_width"\r
+            android:layout_height="wrap_content"\r
+            android:layout_alignParentRight="true"\r
+            android:layout_centerVertical="true"\r
+            android:padding="8dp"\r
+            android:src="@drawable/margin_big"\r
+            android:tint="@color/config_gray"/>\r
+    </RelativeLayout>\r
+\r
+    <RelativeLayout\r
+        android:id="@+id/interline_size_layout"\r
+        android:layout_width="match_parent"\r
+        android:layout_height="wrap_content"\r
+        android:layout_below="@+id/margin_size_layout"\r
+        android:orientation="horizontal">\r
+\r
+        <ImageView\r
+            android:id="@+id/small_interline"\r
+            android:layout_width="@dimen/config_icon_width"\r
+            android:layout_height="wrap_content"\r
+            android:layout_centerVertical="true"\r
+            android:padding="8dp"\r
+            android:src="@drawable/inset_small"\r
+            android:tint="@color/config_gray"/>\r
+\r
+        <SeekBar\r
+            android:id="@+id/seekbar_interline_size"\r
+            android:layout_width="match_parent"\r
+            android:layout_height="wrap_content"\r
+            android:layout_toLeftOf="@+id/big_interline"\r
+            android:layout_toRightOf="@+id/small_interline"\r
+            android:max="4"\r
+            android:maxHeight="0.2dp"\r
+            android:minHeight="0.2dp"\r
+            android:padding="16dp"/>\r
+\r
+        <ImageView\r
+            android:id="@+id/big_interline"\r
+            android:layout_width="@dimen/config_icon_width"\r
+            android:layout_height="wrap_content"\r
+            android:layout_alignParentRight="true"\r
+            android:layout_centerVertical="true"\r
+            android:padding="8dp"\r
+            android:src="@drawable/inset_big"\r
+            android:tint="@color/config_gray"/>\r
+    </RelativeLayout>\r
+</RelativeLayout>
\ No newline at end of file