diff options
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/AndroidManifest.xml | 9 | ||||
-rw-r--r-- | core/res/res/drawable-hdpi/ic_checkmark_holo_light.png | bin | 0 -> 924 bytes | |||
-rw-r--r-- | core/res/res/drawable-mdpi/ic_checkmark_holo_light.png | bin | 0 -> 658 bytes | |||
-rw-r--r-- | core/res/res/drawable-xhdpi/ic_checkmark_holo_light.png | bin | 0 -> 1159 bytes | |||
-rw-r--r-- | core/res/res/layout/choose_account_type.xml | 49 | ||||
-rw-r--r-- | core/res/res/layout/choose_selected_account_row.xml | 46 | ||||
-rw-r--r-- | core/res/res/layout/choose_type_and_account.xml | 37 | ||||
-rwxr-xr-x | core/res/res/values/strings.xml | 11 |
8 files changed, 137 insertions, 15 deletions
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 80741eb..9755f22 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1533,19 +1533,14 @@ <activity android:name="android.accounts.ChooseTypeAndAccountActivity" android:excludeFromRecents="true" android:exported="true" - android:theme="@android:style/Theme.Holo.Dialog" + android:theme="@android:style/Theme.Holo.DialogWhenLarge.NoActionBar" android:label="@string/choose_account_label" android:process=":ui"> - <intent-filter> - <action android:name="android.intent.action.PICK" /> - <category android:name="android.intent.category.ACCOUNT" /> - </intent-filter> </activity> <activity android:name="android.accounts.ChooseAccountTypeActivity" android:excludeFromRecents="true" - android:exported="true" - android:theme="@android:style/Theme.Holo.Dialog" + android:theme="@android:style/Theme.Holo.DialogWhenLarge.NoActionBar" android:label="@string/choose_account_label" android:process=":ui"> </activity> diff --git a/core/res/res/drawable-hdpi/ic_checkmark_holo_light.png b/core/res/res/drawable-hdpi/ic_checkmark_holo_light.png Binary files differnew file mode 100644 index 0000000..2c6719b --- /dev/null +++ b/core/res/res/drawable-hdpi/ic_checkmark_holo_light.png diff --git a/core/res/res/drawable-mdpi/ic_checkmark_holo_light.png b/core/res/res/drawable-mdpi/ic_checkmark_holo_light.png Binary files differnew file mode 100644 index 0000000..744e964 --- /dev/null +++ b/core/res/res/drawable-mdpi/ic_checkmark_holo_light.png diff --git a/core/res/res/drawable-xhdpi/ic_checkmark_holo_light.png b/core/res/res/drawable-xhdpi/ic_checkmark_holo_light.png Binary files differnew file mode 100644 index 0000000..1607f35 --- /dev/null +++ b/core/res/res/drawable-xhdpi/ic_checkmark_holo_light.png diff --git a/core/res/res/layout/choose_account_type.xml b/core/res/res/layout/choose_account_type.xml new file mode 100644 index 0000000..db96dc1 --- /dev/null +++ b/core/res/res/layout/choose_account_type.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* //device/apps/common/assets/res/layout/list_content.xml +** +** Copyright 2011, 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="match_parent" + android:orientation="vertical" + android:paddingLeft="16dip" + android:paddingRight="16dip"> + + <TextView android:id="@+id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_gravity="left" + android:text="@string/add_account_label" + android:paddingTop="16dip" + android:paddingBottom="16dip" + android:textColor="@android:color/holo_blue_light" + /> + + <View android:layout_height="3dip" + android:layout_width="match_parent" + android:background="#323232"/> + + <ListView android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:drawSelectorOnTop="false" + android:scrollbarAlwaysDrawVerticalTrack="true" /> + +</LinearLayout> diff --git a/core/res/res/layout/choose_selected_account_row.xml b/core/res/res/layout/choose_selected_account_row.xml new file mode 100644 index 0000000..d88750d --- /dev/null +++ b/core/res/res/layout/choose_selected_account_row.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright (C) 2011 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:paddingLeft="0dip" + android:paddingRight="0dip" + android:orientation="horizontal" > + + <ImageView android:id="@+id/account_row_icon" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:paddingRight="8dip" /> + + <TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/account_row_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center_vertical" + android:minHeight="?android:attr/listPreferredItemHeight" /> + + <ImageView android:id="@+id/account_row_checkmark" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="right" + android:layout_weight="2" + android:paddingRight="8dip" + android:src="@drawable/ic_checkmark_holo_light" /> + +</LinearLayout>
\ No newline at end of file diff --git a/core/res/res/layout/choose_type_and_account.xml b/core/res/res/layout/choose_type_and_account.xml index 8be01b4..5a05126 100644 --- a/core/res/res/layout/choose_type_and_account.xml +++ b/core/res/res/layout/choose_type_and_account.xml @@ -24,21 +24,44 @@ android:paddingLeft="16dip" android:paddingRight="16dip"> - <ListView xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@android:id/list" + <TextView android:id="@+id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_gravity="left" + android:text="@string/choose_account_label" + android:paddingTop="16dip" + android:paddingBottom="16dip" + android:textColor="@android:color/holo_blue_light" + /> + + <View android:layout_height="3dip" + android:layout_width="match_parent" + android:background="#323232"/> + + <TextView android:id="@+id/description" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_gravity="left|center_vertical" + android:text="@string/choose_account_text" + android:paddingTop="16dip" + android:paddingBottom="16dip" + /> + + <ListView android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_weight="1" android:drawSelectorOnTop="false" + android:layout_weight="1" android:scrollbarAlwaysDrawVerticalTrack="true" /> <Button android:id="@+id/addAccount" - android:layout_width="wrap_content" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_weight="2" android:layout_marginLeft="2dip" android:layout_marginRight="2dip" - android:textAppearance="?android:attr/textAppearanceLarge" - android:textStyle="bold" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="@string/add_account_button_label" /> </LinearLayout> diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index f75c7d5..e093fa9 100755 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -3094,6 +3094,12 @@ <!-- Choose Account Activity label --> <string name="choose_account_label">Select an account</string> + <string name="add_account_label">"Add an account"</string> + <string name="choose_account_text">"Which account would you like to use?"</string> + + <!-- Button label to add an account [CHAR LIMIT=20] --> + <string name="add_account_button_label">Add account</string> + <!-- NumberPicker - accessibility support --> <!-- Description of the button to increment the NumberPicker value. [CHAR LIMIT=NONE] --> <string name="number_picker_increment_button">Increment</string> @@ -3174,6 +3180,9 @@ <!-- Slide lock screen --> + <!-- Description of the sliding handle in the Slide unlock screen. [CHAR LIMIT=NONE] --> + <string name="content_description_sliding_handle">"Sliding handle. Tap and hold."</string> + <!-- Description of the up direction in which one can to slide the handle in the Slide unlock screen. [CHAR LIMIT=NONE] --> <string name="description_direction_up">Up for <xliff:g id="target_description" example="Unlock">%s</xliff:g>.</string> <!-- Description of the down direction in which one can to slide the handle in the Slide unlock screen. [CHAR LIMIT=NONE] --> @@ -3293,4 +3302,4 @@ <!-- Delimeter used between each item in a textual list; for example "Alpha, Beta". [CHAR LIMIT=3] --> <string name="list_delimeter">", "</string> -</resources> +</resources>
\ No newline at end of file |