diff options
| author | Jules Aguillon | 2023-07-09 18:06:12 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-07-09 18:14:43 +0200 |
| commit | 4669192a01cacba288b5fdd3671ad7c8db9df7d8 (patch) | |
| tree | 6f9bcdee2e5a75642c003e06610a69f602a2b841 /res/layout | |
| parent | a2957a43d68f51e10c84be07b8725ea241dc8580 (diff) | |
| download | unexpected-keyboard-4669192a01cacba288b5fdd3671ad7c8db9df7d8.tar.gz unexpected-keyboard-4669192a01cacba288b5fdd3671ad7c8db9df7d8.zip | |
Refactor: Don't define extra keys in xml
The current approach is hard to maintain, for example the last key
"autofill" was not displayed.
This implements a PreferenceGroup that contains the check boxes for
every extra keys without involving listing the preferences in
settings.xml.
A custom layout is used to remove the 'title' text view.
The list of extra keys is moved into the new class.
'ExtraKeyCheckBoxPreference' becomes a nested class.
Diffstat (limited to 'res/layout')
| -rw-r--r-- | res/layout/extra_keys_preference.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/res/layout/extra_keys_preference.xml b/res/layout/extra_keys_preference.xml new file mode 100644 index 0000000..40bbfbe --- /dev/null +++ b/res/layout/extra_keys_preference.xml @@ -0,0 +1,5 @@ +<?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:paddingEnd="?android:attr/scrollbarSize" android:background="?android:attr/selectableItemBackground"> + <!-- Preference layout that do not define the text view with id 'title'. --> + <LinearLayout android:id="@android:id/widget_frame" android:layout_width="wrap_content" android:layout_height="match_parent" android:gravity="center_vertical" android:orientation="vertical"/> +</LinearLayout> |
