aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-09-18 03:50:28 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-09-18 03:50:28 +0000
commitc809215759df3abcc2ebc9b31f633174216fb763 (patch)
tree27402478e6b68979193c1ed92945a8d67ca7dd85 /app/src/main/res/layout
parent7cbe3d043f3fd3a5f80387e362df2f52709e4cfd (diff)
downloadinfinity-for-reddit-c809215759df3abcc2ebc9b31f633174216fb763.tar
infinity-for-reddit-c809215759df3abcc2ebc9b31f633174216fb763.tar.gz
infinity-for-reddit-c809215759df3abcc2ebc9b31f633174216fb763.tar.bz2
infinity-for-reddit-c809215759df3abcc2ebc9b31f633174216fb763.tar.lz
infinity-for-reddit-c809215759df3abcc2ebc9b31f633174216fb763.tar.xz
infinity-for-reddit-c809215759df3abcc2ebc9b31f633174216fb763.tar.zst
infinity-for-reddit-c809215759df3abcc2ebc9b31f633174216fb763.zip
Support link and header in markdown bottom bar.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/dialog_insert_link.xml30
-rw-r--r--app/src/main/res/layout/dialog_select_header.xml37
2 files changed, 67 insertions, 0 deletions
diff --git a/app/src/main/res/layout/dialog_insert_link.xml b/app/src/main/res/layout/dialog_insert_link.xml
new file mode 100644
index 00000000..c54e66ff
--- /dev/null
+++ b/app/src/main/res/layout/dialog_insert_link.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <EditText
+ android:id="@+id/edit_text_insert_link_dialog"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="24dp"
+ android:background="#00000000"
+ android:hint="@string/text_hint"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family" />
+
+ <EditText
+ android:id="@+id/edit_link_insert_link_dialog"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="24dp"
+ android:background="#00000000"
+ android:hint="@string/link_hint"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/dialog_select_header.xml b/app/src/main/res/layout/dialog_select_header.xml
new file mode 100644
index 00000000..14c68249
--- /dev/null
+++ b/app/src/main/res/layout/dialog_select_header.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:text="@string/header6"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family" />
+
+ <SeekBar
+ android:id="@+id/seek_bar_dialog_select_header"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_gravity="center_vertical"
+ android:padding="16dp"
+ android:max="5"
+ android:theme="@style/Widget.AppCompat.SeekBar.Discrete" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:text="@string/header1"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family" />
+
+</LinearLayout> \ No newline at end of file