abouttreesummaryrefslogcommitdiff
path: root/res/layout
diff options
context:
space:
mode:
authorJules Aguillon2023-07-29 18:31:26 +0200
committerJules Aguillon2023-07-29 18:42:36 +0200
commit0856fb4e31a98b7f14f50006d95c89e23c19503d (patch)
tree1c81fcb97af653d3c3214bd22e11f133d01312f6 /res/layout
parent0a114bd2bc0fabf204190457d671f2a719acf6e9 (diff)
downloadunexpected-keyboard-0856fb4e31a98b7f14f50006d95c89e23c19503d.tar.gz
unexpected-keyboard-0856fb4e31a98b7f14f50006d95c89e23c19503d.zip
Refactor: Split out ListGroupPreference
Split out the implementation of a string-list preference from CustomExtraKeysPreference. Allows to share the implementation with future preferences.
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/custom_extra_key_widget.xml4
-rw-r--r--res/layout/pref_listgroup_add_btn.xml (renamed from res/layout/custom_extra_key_add.xml)0
-rw-r--r--res/layout/pref_listgroup_group.xml3
-rw-r--r--res/layout/pref_listgroup_item_widget.xml4
4 files changed, 7 insertions, 4 deletions
diff --git a/res/layout/custom_extra_key_widget.xml b/res/layout/custom_extra_key_widget.xml
deleted file mode 100644
index 7961f3c..0000000
--- a/res/layout/custom_extra_key_widget.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
- <Button android:id="@+id/btn_custom_extra_key_remove" android:layout_width="@dimen/pref_button_size" android:layout_height="@dimen/pref_button_size" android:layout_gravity="center" android:background="@android:drawable/ic_menu_close_clear_cancel"/>
-</LinearLayout>
diff --git a/res/layout/custom_extra_key_add.xml b/res/layout/pref_listgroup_add_btn.xml
index bb555b5..bb555b5 100644
--- a/res/layout/custom_extra_key_add.xml
+++ b/res/layout/pref_listgroup_add_btn.xml
diff --git a/res/layout/pref_listgroup_group.xml b/res/layout/pref_listgroup_group.xml
new file mode 100644
index 0000000..2b9db4b
--- /dev/null
+++ b/res/layout/pref_listgroup_group.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center">
+</LinearLayout>
diff --git a/res/layout/pref_listgroup_item_widget.xml b/res/layout/pref_listgroup_item_widget.xml
new file mode 100644
index 0000000..48e504e
--- /dev/null
+++ b/res/layout/pref_listgroup_item_widget.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
+ <Button android:id="@+id/pref_listgroup_remove_btn" android:layout_width="@dimen/pref_button_size" android:layout_height="@dimen/pref_button_size" android:layout_gravity="center" android:background="@android:drawable/ic_menu_close_clear_cancel"/>
+</LinearLayout>