diff options
Diffstat (limited to 'java/res')
-rw-r--r-- | java/res/drawable-hdpi/ic_settings_language.png | bin | 0 -> 986 bytes | |||
-rw-r--r-- | java/res/drawable-mdpi/ic_settings_language.png | bin | 0 -> 756 bytes | |||
-rw-r--r-- | java/res/drawable-xhdpi/ic_settings_language.png | bin | 0 -> 1267 bytes | |||
-rw-r--r-- | java/res/layout/setup_step.xml | 58 | ||||
-rw-r--r-- | java/res/layout/setup_wizard.xml | 78 | ||||
-rw-r--r-- | java/res/values-sw600dp-land/setup-dimens.xml | 20 | ||||
-rw-r--r-- | java/res/values-sw768dp-land/setup-dimens.xml | 20 | ||||
-rw-r--r-- | java/res/values/colors.xml | 5 | ||||
-rw-r--r-- | java/res/values/setup-dimens.xml | 20 | ||||
-rw-r--r-- | java/res/values/setup-styles.xml | 45 | ||||
-rw-r--r-- | java/res/values/strings.xml | 25 |
11 files changed, 271 insertions, 0 deletions
diff --git a/java/res/drawable-hdpi/ic_settings_language.png b/java/res/drawable-hdpi/ic_settings_language.png Binary files differnew file mode 100644 index 000000000..f635b2e7a --- /dev/null +++ b/java/res/drawable-hdpi/ic_settings_language.png diff --git a/java/res/drawable-mdpi/ic_settings_language.png b/java/res/drawable-mdpi/ic_settings_language.png Binary files differnew file mode 100644 index 000000000..f8aca679b --- /dev/null +++ b/java/res/drawable-mdpi/ic_settings_language.png diff --git a/java/res/drawable-xhdpi/ic_settings_language.png b/java/res/drawable-xhdpi/ic_settings_language.png Binary files differnew file mode 100644 index 000000000..2c42db3aa --- /dev/null +++ b/java/res/drawable-xhdpi/ic_settings_language.png diff --git a/java/res/layout/setup_step.xml b/java/res/layout/setup_step.xml new file mode 100644 index 000000000..26d7fe799 --- /dev/null +++ b/java/res/layout/setup_step.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2013, 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"> + <TextView + android:id="@+id/setup_step_title" + style="@style/setupStepTitleStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingLeft="24dp" + android:paddingRight="24dp" /> + <TextView + android:id="@+id/setup_step_instruction" + style="@style/setupStepInstructionStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingBottom="16dp" + android:paddingLeft="24dp" + android:paddingRight="24dp" /> + <View + android:layout_width="match_parent" + android:layout_height="2dp" /> + <TextView + android:id="@+id/setup_step_action_label" + style="@style/setupStepActionLabelStyle" + android:gravity="center_vertical" + android:drawablePadding="12dp" + android:layout_width="match_parent" + android:layout_height="48dp" + android:clickable="true" + android:focusable="true" + android:paddingLeft="12dp" + android:paddingStart="12dp" + android:paddingRight="24dp" + android:paddingEnd="24dp" /> +</LinearLayout> diff --git a/java/res/layout/setup_wizard.xml b/java/res/layout/setup_wizard.xml new file mode 100644 index 000000000..acbbe30b3 --- /dev/null +++ b/java/res/layout/setup_wizard.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2013, 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. +*/ +--> + +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fillViewport="true"> + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@color/setup_background" + android:paddingLeft="@dimen/setup_horizontal_padding" + android:paddingRight="@dimen/setup_horizontal_padding" + android:paddingTop="16dp" + android:paddingBottom="16dp"> + <TextView + android:id="@+id/setup_title" + style="@style/setupTitleStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_alignParentTop="true" /> + <LinearLayout + android:id="@+id/setup_step_bullets" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/setup_title" + android:paddingTop="16dp" + android:orientation="horizontal"> + <TextView + style="@style/setupStepBulletStyle" + android:text="@string/setup_step1_bullet" /> + <TextView + style="@style/setupStepBulletStyle" + android:text="@string/setup_step2_bullet" /> + <TextView + style="@style/setupStepBulletStyle" + android:text="@string/setup_step3_bullet" /> + </LinearLayout> + <com.android.inputmethod.latin.setup.SetupStepIndicatorView + android:id="@+id/setup_step_indicator" + android:layout_width="match_parent" + android:layout_height="24dp" + android:layout_below="@id/setup_step_bullets" /> + <FrameLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/setup_step_indicator"> + <include + android:id="@+id/setup_step1" + layout="@layout/setup_step" /> + <include + android:id="@+id/setup_step2" + layout="@layout/setup_step" /> + <include + android:id="@+id/setup_step3" + layout="@layout/setup_step" /> + </FrameLayout> + </RelativeLayout> +</ScrollView> diff --git a/java/res/values-sw600dp-land/setup-dimens.xml b/java/res/values-sw600dp-land/setup-dimens.xml new file mode 100644 index 000000000..9aea21423 --- /dev/null +++ b/java/res/values-sw600dp-land/setup-dimens.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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"> + <dimen name="setup_title_text_size">64sp</dimen> + <dimen name="setup_horizontal_padding">96dp</dimen> +</resources> diff --git a/java/res/values-sw768dp-land/setup-dimens.xml b/java/res/values-sw768dp-land/setup-dimens.xml new file mode 100644 index 000000000..0d2af17e3 --- /dev/null +++ b/java/res/values-sw768dp-land/setup-dimens.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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"> + <dimen name="setup_title_text_size">64sp</dimen> + <dimen name="setup_horizontal_padding">192dp</dimen> +</resources> diff --git a/java/res/values/colors.xml b/java/res/values/colors.xml index c0ea321ce..8a8049f1f 100644 --- a/java/res/values/colors.xml +++ b/java/res/values/colors.xml @@ -53,4 +53,9 @@ <color name="spacebar_text_color_ics">#FFC0C0C0</color> <color name="spacebar_text_shadow_color_ics">#80000000</color> <color name="typed_word_color_ics">@color/highlight_color_ics</color> + <!-- Color resources for setup wizard and tutorial --> + <color name="setup_background">#FFEBEBEB</color> + <color name="setup_text_dark">#FF707070</color> + <color name="setup_text_action">@android:color/holo_blue_light</color> + <color name="setup_step_background">@android:color/background_light</color> </resources> diff --git a/java/res/values/setup-dimens.xml b/java/res/values/setup-dimens.xml new file mode 100644 index 000000000..007906dc0 --- /dev/null +++ b/java/res/values/setup-dimens.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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"> + <dimen name="setup_title_text_size">46sp</dimen> + <dimen name="setup_horizontal_padding">16dp</dimen> +</resources> diff --git a/java/res/values/setup-styles.xml b/java/res/values/setup-styles.xml new file mode 100644 index 000000000..cfc689a78 --- /dev/null +++ b/java/res/values/setup-styles.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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"> + <style name="setupTitleStyle"> + <item name="android:textColor">@color/setup_text_dark</item> + <item name="android:textSize">@dimen/setup_title_text_size</item> + </style> + <style name="setupStepBulletStyle"> + <item name="android:textColor">@color/setup_text_dark</item> + <item name="android:textSize">22sp</item> + <item name="android:layout_width">0dp</item> + <item name="android:layout_weight">1.0</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:gravity">center_horizontal</item> + </style> + <style name="setupStepTitleStyle"> + <item name="android:background">@color/setup_step_background</item> + <item name="android:textColor">@color/setup_text_dark</item> + <item name="android:textSize">22sp</item> + </style> + <style name="setupStepInstructionStyle"> + <item name="android:background">@color/setup_step_background</item> + <item name="android:textColor">@color/setup_text_dark</item> + <item name="android:textSize">14sp</item> + </style> + <style name="setupStepActionLabelStyle"> + <item name="android:background">@color/setup_step_background</item> + <item name="android:textColor">@color/setup_text_action</item> + <item name="android:textSize">18sp</item> + </style> +</resources> diff --git a/java/res/values/strings.xml b/java/res/values/strings.xml index ee79b450e..f7d34c8e3 100644 --- a/java/res/values/strings.xml +++ b/java/res/values/strings.xml @@ -408,4 +408,29 @@ <!-- Title of the button to revert to the default value of the device in the settings dialog [CHAR LIMIT=15] --> <string name="button_default">Default</string> + + <!-- Title of the setup wizard. [CHAR LIMT=40] --> + <string name="setup_title">"Installing <xliff:g id="application_name">%s</xliff:g>"</string> + <!-- Ordinal number of the 1st step in the setup wizard. [CHAR LIMIT=5] --> + <string name="setup_step1_bullet">1</string> + <!-- Title of the 1st step in the setup wizard. [CHAR LIMIT=64] --> + <string name="setup_step1_title">"Enable <xliff:g id="application_name">%s</xliff:g> in settings."</string> + <!-- Detailed instruction of the 1st step in the setup wizard. [CHAR LIMIT=80] --> + <string name="setup_step1_instruction">"For security, please check \"<xliff:g id="application_name">%s</xliff:g>\""</string> + <!-- Ordinal number of the 2nd step in the setup wizard. [CHAR LIMIT=5] --> + <string name="setup_step2_bullet">2</string> + <!-- Title of the 2nd step in the setup wizard. [CHAR LIMIT=64] --> + <string name="setup_step2_title">"Switch to <xliff:g id="application_name">%s</xliff:g>."</string> + <!-- Detailed instruction of the 2nd step in the setup wizard. [CHAR LIMIT=80] --> + <string name="setup_step2_instruction">"Now that you've enabled <xliff:g id="application_name">%s</xliff:g>, you can switch to it."</string> + <!-- Ordinal number of the 3rd step in the setup wizard. [CHAR LIMIT=5] --> + <string name="setup_step3_bullet">3</string> + <!-- Title of the 3rd step in the setup wizard. [CHAR LIMIT=64] --> + <string name="setup_step3_title">"Congratulations, you're all set!"</string> + <!-- Detailed instruction of the 3rd step in the setup wizard. [CHAR LIMIT=80] --> + <string name="setup_step3_instruction">Configure additional languages</string> + <!-- Title of the Language & input settings. This should be aligned with msgid="5292716747264442359" --> + <string name="language_settings">Language & input</string> + <!-- Title of the Input method picker. This should be aligned with msgid="4653387336791222978" --> + <string name="select_input_method">Choose input method</string> </resources> |