Skip to content
Snippets Groups Projects
Commit 032bac3e authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Fix crash while settings custom input style"

parents 71f82c37 06b02817
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
android:text="@string/subtype_locale" /> android:text="@string/subtype_locale" />
<Spinner <Spinner
android:id="@+id/subtype_locale_spinner" android:id="@+id/subtype_locale_spinner"
android:spinnerMode="dialog"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_weight="70" android:layout_weight="70"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -47,7 +46,8 @@ ...@@ -47,7 +46,8 @@
android:layout_marginTop="8dip" android:layout_marginTop="8dip"
android:layout_gravity="fill_horizontal|center_vertical" android:layout_gravity="fill_horizontal|center_vertical"
android:gravity="start|left" android:gravity="start|left"
android:prompt="@string/subtype_locale" /> android:prompt="@string/subtype_locale"
style="@style/additionalSubtypeSpinnerStyle" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:orientation="horizontal" android:orientation="horizontal"
...@@ -63,7 +63,6 @@ ...@@ -63,7 +63,6 @@
android:text="@string/keyboard_layout_set" /> android:text="@string/keyboard_layout_set" />
<Spinner <Spinner
android:id="@+id/keyboard_layout_set_spinner" android:id="@+id/keyboard_layout_set_spinner"
android:spinnerMode="dialog"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_weight="70" android:layout_weight="70"
android:layout_height="wrap_content" android:layout_height="wrap_content"
...@@ -72,6 +71,7 @@ ...@@ -72,6 +71,7 @@
android:layout_marginTop="8dip" android:layout_marginTop="8dip"
android:layout_gravity="fill_horizontal|center_vertical" android:layout_gravity="fill_horizontal|center_vertical"
android:gravity="start|left" android:gravity="start|left"
android:prompt="@string/keyboard_layout_set" /> android:prompt="@string/keyboard_layout_set"
style="@style/additionalSubtypeSpinnerStyle" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 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.
*/
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Until KitKat (API 19), {@link android.widget.Spinner} of dialog mode in a Dialog can't
handle orientation change correctly. Using dropdown mode avoids the issue.
This file overrides values/spinner-style.xml on KitKat and newer device. -->
<style name="additionalSubtypeSpinnerStyle">
<item name="android:spinnerMode">dialog</item>
</style>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 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.
*/
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Until KitKat (API 19), {@link android.widget.Spinner} of dialog mode in a Dialog can't
handle orientation change correctly. Using dropdown mode avoids the issue.
This file is overrode by values-v19/spinner-style.xml on KitKat and newer device. -->
<style name="additionalSubtypeSpinnerStyle">
<item name="android:spinnerMode">dropdown</item>
</style>
</resources>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment