aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-03-20 09:03:49 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-03-20 09:03:49 +0000
commit587dfccd32fadcf402f128da08bd9859b1dac06e (patch)
treecec59b4aa2b5b288e5249176d6ef1da82da3e9e9 /app/src/main/res/layout
parent9e4dec362dc575e44be99e650cb4c4b1e031644c (diff)
downloadinfinity-for-reddit-587dfccd32fadcf402f128da08bd9859b1dac06e.tar
infinity-for-reddit-587dfccd32fadcf402f128da08bd9859b1dac06e.tar.gz
infinity-for-reddit-587dfccd32fadcf402f128da08bd9859b1dac06e.tar.bz2
infinity-for-reddit-587dfccd32fadcf402f128da08bd9859b1dac06e.tar.lz
infinity-for-reddit-587dfccd32fadcf402f128da08bd9859b1dac06e.tar.xz
infinity-for-reddit-587dfccd32fadcf402f128da08bd9859b1dac06e.tar.zst
infinity-for-reddit-587dfccd32fadcf402f128da08bd9859b1dac06e.zip
Add a color picker.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/color_picker.xml156
1 files changed, 156 insertions, 0 deletions
diff --git a/app/src/main/res/layout/color_picker.xml b/app/src/main/res/layout/color_picker.xml
new file mode 100644
index 00000000..3e8b25cd
--- /dev/null
+++ b/app/src/main/res/layout/color_picker.xml
@@ -0,0 +1,156 @@
+<?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">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingTop="12dp"
+ android:paddingBottom="12dp"
+ android:paddingStart="24dp"
+ android:paddingEnd="24dp"
+ android:text="@string/color_picker"
+ style="@style/MaterialAlertDialogTitleTextStyle" />
+
+ <View
+ android:id="@+id/color_view_color_picker"
+ android:layout_width="match_parent"
+ android:layout_height="200dp" />
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="#"
+ android:textColor="?attr/primaryTextColor"/>
+
+ <EditText
+ android:id="@+id/color_edit_text_color_picker"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:maxLength="8"
+ android:inputType="textCapCharacters|textNoSuggestions"
+ android:textColor="?attr/primaryTextColor" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="16dp"
+ android:paddingBottom="8dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="A"
+ android:textColor="?attr/primaryTextColor" />
+
+ <SeekBar
+ android:id="@+id/a_seek_bar_color_picker"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:max="255" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="8dp"
+ android:paddingBottom="8dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="R"
+ android:textColor="?attr/primaryTextColor" />
+
+ <SeekBar
+ android:id="@+id/r_seek_bar_color_picker"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:max="255" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="8dp"
+ android:paddingBottom="8dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="G"
+ android:textColor="?attr/primaryTextColor" />
+
+ <SeekBar
+ android:id="@+id/g_seek_bar_color_picker"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:max="255" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="8dp"
+ android:paddingBottom="32dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="B"
+ android:textColor="?attr/primaryTextColor" />
+
+ <SeekBar
+ android:id="@+id/b_seek_bar_color_picker"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:max="255" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_gravity="end"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingBottom="4dp"
+ android:paddingStart="12dp"
+ android:paddingEnd="12dp">
+
+ <Button
+ android:id="@+id/cancel_button_color_picker"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/cancel"
+ style="@style/MaterialAlertDialogNegativeButtonStyle" />
+
+ <Button
+ android:id="@+id/ok_button_color_picker"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/ok"
+ style="@style/MaterialAlertDialogPositiveButtonStyle" />
+
+ </LinearLayout>
+
+</LinearLayout> \ No newline at end of file