aboutsummaryrefslogtreecommitdiffstats
path: root/java/res
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-07-29 13:31:59 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-07-29 13:31:59 +0000
commit0f53ef0ab78277af74a22249e999a8ee62dd2c63 (patch)
tree86f00362379647d070b2ee077f5797e1761f03d4 /java/res
parentcaf539079d8e02f2f9f4b50a933d3df55c6e85c1 (diff)
parent8172a681439501a755459ca755c1a877fec919d6 (diff)
downloadlatinime-0f53ef0ab78277af74a22249e999a8ee62dd2c63.tar.gz
latinime-0f53ef0ab78277af74a22249e999a8ee62dd2c63.tar.xz
latinime-0f53ef0ab78277af74a22249e999a8ee62dd2c63.zip
am 8172a681: am a715d7f6: Use fragment for keyboard theme settings
* commit '8172a681439501a755459ca755c1a877fec919d6': Use fragment for keyboard theme settings
Diffstat (limited to 'java/res')
-rw-r--r--java/res/layout/radio_button_preference_widget.xml23
-rw-r--r--java/res/xml/prefs.xml8
-rw-r--r--java/res/xml/prefs_screen_theme.xml23
3 files changed, 49 insertions, 5 deletions
diff --git a/java/res/layout/radio_button_preference_widget.xml b/java/res/layout/radio_button_preference_widget.xml
new file mode 100644
index 000000000..ee9cda1cc
--- /dev/null
+++ b/java/res/layout/radio_button_preference_widget.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2014 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<RadioButton
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/radio_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:clickable="false"
+ android:focusable="false" />
diff --git a/java/res/xml/prefs.xml b/java/res/xml/prefs.xml
index 66091a03d..ba285de09 100644
--- a/java/res/xml/prefs.xml
+++ b/java/res/xml/prefs.xml
@@ -22,12 +22,10 @@
android:fragment="com.android.inputmethod.latin.settings.InputSettingsFragment"
android:title="@string/settings_screen_input"
android:key="screen_input" />
- <ListPreference
- android:key="pref_keyboard_theme"
+ <PreferenceScreen
+ android:fragment="com.android.inputmethod.latin.settings.ThemeSettingsFragment"
android:title="@string/keyboard_theme"
- android:entryValues="@array/keyboard_theme_ids"
- android:entries="@array/keyboard_theme_names"
- android:persistent="true" />
+ android:key="screen_theme" />
<PreferenceScreen
android:fragment="com.android.inputmethod.latin.settings.MultiLingualSettingsFragment"
android:title="@string/settings_screen_multi_lingual"
diff --git a/java/res/xml/prefs_screen_theme.xml b/java/res/xml/prefs_screen_theme.xml
new file mode 100644
index 000000000..b49f0bea6
--- /dev/null
+++ b/java/res/xml/prefs_screen_theme.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2014 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<PreferenceScreen
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
+ android:title="@string/keyboard_theme"
+ android:key="screen_theme">
+ <!-- Keyboard theme list will be populated programmatically here. -->
+</PreferenceScreen>