diff options
author | satok <satok@google.com> | 2012-04-11 00:12:59 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-04-11 00:12:59 -0700 |
commit | 8d33d39d68d46af758143a56c89322360cbbada2 (patch) | |
tree | 0ab6d8815b5864cd74f299bcc458d0592bf980db /core/res | |
parent | 9f25b7fdf216c9ef0bd2322cd223eeaf0d60f77f (diff) | |
parent | 01038492ff0317f0d3cff54d8a7ee36bb31ff175 (diff) | |
download | frameworks_base-8d33d39d68d46af758143a56c89322360cbbada2.zip frameworks_base-8d33d39d68d46af758143a56c89322360cbbada2.tar.gz frameworks_base-8d33d39d68d46af758143a56c89322360cbbada2.tar.bz2 |
Merge "Show physical keyboard control button on the input method switch dialog"
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/res/layout/input_method_switch_dialog_title.xml | 108 | ||||
-rw-r--r-- | core/res/res/values/public.xml | 5 | ||||
-rwxr-xr-x | core/res/res/values/strings.xml | 4 |
3 files changed, 117 insertions, 0 deletions
diff --git a/core/res/res/layout/input_method_switch_dialog_title.xml b/core/res/res/layout/input_method_switch_dialog_title.xml new file mode 100644 index 0000000..7032bd3 --- /dev/null +++ b/core/res/res/layout/input_method_switch_dialog_title.xml @@ -0,0 +1,108 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2012, 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. +*/ +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="9dip" + android:layout_marginLeft="20dip" + android:layout_marginRight="10dip" + android:layout_marginTop="6dip" + android:gravity="center_vertical" + android:orientation="vertical" > + + <com.android.internal.widget.DialogTitle + android:id="@+id/alertTitle" + style="@android:style/DialogWindowTitle.Holo" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ellipsize="end" + android:singleLine="true" + android:text="@string/select_input_method" /> + </LinearLayout> + + <!-- Hard keyboard switch --> + + <LinearLayout + android:id="@+id/hard_keyboard_section" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <View + android:layout_width="match_parent" + android:layout_height="2dip" + android:background="@android:color/holo_blue_light" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <LinearLayout + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="?android:attr/selectableItemBackground" + android:ellipsize="marquee" + android:gravity="center_vertical" + android:minHeight="?android:attr/listPreferredItemHeightSmall" + android:orientation="vertical" + android:paddingBottom="5dip" + android:paddingLeft="16dip" + android:paddingRight="0dip" + android:paddingTop="5dip" > + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:text="@string/hardware" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textColor="?android:attr/textColorAlertDialogListItem" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:text="@string/use_physical_keyboard" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorAlertDialogListItem" /> + </LinearLayout> + + <Switch + android:id="@+id/hard_keyboard_switch" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginRight="12dip" /> + </LinearLayout> + </LinearLayout> + + <View + android:id="@+id/titleDivider" + android:layout_width="match_parent" + android:layout_height="2dip" + android:background="@android:drawable/divider_horizontal_dark" /> + +</LinearLayout>
\ No newline at end of file diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index cbfc1a4..aaef701 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -85,6 +85,8 @@ <java-symbol type="id" name="fillInIntent" /> <java-symbol type="id" name="find" /> <java-symbol type="id" name="fullscreenArea" /> + <java-symbol type="id" name="hard_keyboard_section" /> + <java-symbol type="id" name="hard_keyboard_switch" /> <java-symbol type="id" name="headers" /> <java-symbol type="id" name="hour" /> <java-symbol type="id" name="icon" /> @@ -1042,6 +1044,7 @@ <java-symbol type="layout" name="icon_menu_layout" /> <java-symbol type="layout" name="input_method" /> <java-symbol type="layout" name="input_method_extract_view" /> + <java-symbol type="layout" name="input_method_switch_dialog_title" /> <java-symbol type="layout" name="js_prompt" /> <java-symbol type="layout" name="list_content_simple" /> <java-symbol type="layout" name="list_menu_item_checkbox" /> @@ -1449,6 +1452,7 @@ <java-symbol type="string" name="factorytest_no_action" /> <java-symbol type="string" name="factorytest_not_system" /> <java-symbol type="string" name="factorytest_reboot" /> + <java-symbol type="string" name="hardware" /> <java-symbol type="string" name="heavy_weight_notification" /> <java-symbol type="string" name="heavy_weight_notification_detail" /> <java-symbol type="string" name="input_method_binding_label" /> @@ -1471,6 +1475,7 @@ <java-symbol type="string" name="usb_cd_installer_notification_title" /> <java-symbol type="string" name="usb_mtp_notification_title" /> <java-symbol type="string" name="usb_notification_message" /> + <java-symbol type="string" name="use_physical_keyboard" /> <java-symbol type="string" name="usb_ptp_notification_title" /> <java-symbol type="string" name="vpn_text" /> <java-symbol type="string" name="vpn_text_long" /> diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 86cece4..0eb46bd 100755 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -2927,6 +2927,10 @@ <string name="select_input_method">Choose input method</string> <!-- Title of a button to open the settings for input methods [CHAR LIMIT=30] --> <string name="configure_input_methods">Set up input methods</string> + <!-- Summary text of a toggle switch to enable/disable use of the physical keyboard in the input method selector [CHAR LIMIT=25] --> + <string name="use_physical_keyboard">Physical keyboard</string> + <!-- Title of the physical keyboard category in the input method selector [CHAR LIMIT=10] --> + <string name="hardware">Hardware</string> <string name="fast_scroll_alphabet">\u0020ABCDEFGHIJKLMNOPQRSTUVWXYZ</string> <string name="fast_scroll_numeric_alphabet">\u00200123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ</string> |