diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-hdpi/appwidget_item_bg_normal.9.png | bin | 0 -> 468 bytes | |||
-rw-r--r-- | res/drawable-hdpi/appwidget_item_bg_pressed.9.png | bin | 0 -> 553 bytes | |||
-rw-r--r-- | res/drawable-mdpi/appwidget_item_bg_normal.9.png | bin | 0 -> 332 bytes | |||
-rw-r--r-- | res/drawable-mdpi/appwidget_item_bg_pressed.9.png | bin | 0 -> 394 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/appwidget_item_bg_normal.9.png | bin | 0 -> 591 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/appwidget_item_bg_pressed.9.png | bin | 0 -> 737 bytes | |||
-rw-r--r-- | res/drawable/appwidget_item_bg.xml | 23 | ||||
-rwxr-xr-x | res/layout/keyguard_appwidget_item.xml | 35 | ||||
-rw-r--r-- | res/layout/keyguard_appwidget_pick_layout.xml | 27 | ||||
-rw-r--r-- | res/values/strings.xml | 9 | ||||
-rw-r--r-- | res/xml/security_settings_biometric_weak.xml | 6 | ||||
-rw-r--r-- | res/xml/security_settings_chooser.xml | 6 | ||||
-rw-r--r-- | res/xml/security_settings_password.xml | 6 | ||||
-rw-r--r-- | res/xml/security_settings_pattern.xml | 6 | ||||
-rw-r--r-- | res/xml/security_settings_pin.xml | 6 |
15 files changed, 85 insertions, 39 deletions
diff --git a/res/drawable-hdpi/appwidget_item_bg_normal.9.png b/res/drawable-hdpi/appwidget_item_bg_normal.9.png Binary files differnew file mode 100644 index 0000000..baff858 --- /dev/null +++ b/res/drawable-hdpi/appwidget_item_bg_normal.9.png diff --git a/res/drawable-hdpi/appwidget_item_bg_pressed.9.png b/res/drawable-hdpi/appwidget_item_bg_pressed.9.png Binary files differnew file mode 100644 index 0000000..7ec33dd --- /dev/null +++ b/res/drawable-hdpi/appwidget_item_bg_pressed.9.png diff --git a/res/drawable-mdpi/appwidget_item_bg_normal.9.png b/res/drawable-mdpi/appwidget_item_bg_normal.9.png Binary files differnew file mode 100644 index 0000000..976083f --- /dev/null +++ b/res/drawable-mdpi/appwidget_item_bg_normal.9.png diff --git a/res/drawable-mdpi/appwidget_item_bg_pressed.9.png b/res/drawable-mdpi/appwidget_item_bg_pressed.9.png Binary files differnew file mode 100644 index 0000000..8f340d3 --- /dev/null +++ b/res/drawable-mdpi/appwidget_item_bg_pressed.9.png diff --git a/res/drawable-xhdpi/appwidget_item_bg_normal.9.png b/res/drawable-xhdpi/appwidget_item_bg_normal.9.png Binary files differnew file mode 100644 index 0000000..b26f1d2 --- /dev/null +++ b/res/drawable-xhdpi/appwidget_item_bg_normal.9.png diff --git a/res/drawable-xhdpi/appwidget_item_bg_pressed.9.png b/res/drawable-xhdpi/appwidget_item_bg_pressed.9.png Binary files differnew file mode 100644 index 0000000..3871689 --- /dev/null +++ b/res/drawable-xhdpi/appwidget_item_bg_pressed.9.png diff --git a/res/drawable/appwidget_item_bg.xml b/res/drawable/appwidget_item_bg.xml new file mode 100644 index 0000000..b9de6d4 --- /dev/null +++ b/res/drawable/appwidget_item_bg.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 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. +--> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true" + android:drawable="@drawable/appwidget_item_bg_pressed" /> + + <item android:drawable="@drawable/appwidget_item_bg_normal" /> +</selector> diff --git a/res/layout/keyguard_appwidget_item.xml b/res/layout/keyguard_appwidget_item.xml new file mode 100755 index 0000000..7280098 --- /dev/null +++ b/res/layout/keyguard_appwidget_item.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" > + <TextView + android:id="@+id/icon_and_label" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="8dip" + android:layout_marginRight="8dip" + android:layout_marginTop="4dip" + android:layout_marginBottom="4dip" + android:background="@drawable/appwidget_item_bg" + android:minHeight="?android:attr/listPreferredItemHeightSmall" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center_vertical" + android:drawablePadding="8dip" + android:paddingStart="11dip" + android:paddingEnd="11dip" /> +</FrameLayout> diff --git a/res/layout/keyguard_appwidget_pick_layout.xml b/res/layout/keyguard_appwidget_pick_layout.xml new file mode 100644 index 0000000..feb85a5 --- /dev/null +++ b/res/layout/keyguard_appwidget_pick_layout.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 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:id="@+id/layout_root" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + <GridView android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:listSelector="@android:color/transparent" + android:id="@+id/widget_list" /> +</LinearLayout> diff --git a/res/values/strings.xml b/res/values/strings.xml index 2248c23..d6abe94 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -808,15 +808,6 @@ <!-- Title for PreferenceScreen to launch picker for security method when there is none [CHAR LIMIT=22] --> <string name="unlock_set_unlock_launch_picker_title">Screen lock</string> - <!-- Title for PreferenceScreen to launch picker for a user-selected widget that will live on lock screen [CHAR LIMIT=22] --> - <string name="choose_user_selected_lockscreen_widget_picker_title">Add widget</string> - - <!-- String to display if there is no user-selected widget on lock screen [CHAR LIMIT=22] --> - <string name="widget_none">None</string> - - <!-- String to display if the clock status widget is selected (it is the default) [CHAR LIMIT=22] --> - <string name="widget_default">Clock</string> - <!-- Title for PreferenceScreen to change security method: None/Pattern/PIN/Password [CHAR LIMIT=22] --> <string name="unlock_set_unlock_launch_picker_change_title">Change lock screen</string> diff --git a/res/xml/security_settings_biometric_weak.xml b/res/xml/security_settings_biometric_weak.xml index 489a200..c830e6f 100644 --- a/res/xml/security_settings_biometric_weak.xml +++ b/res/xml/security_settings_biometric_weak.xml @@ -52,12 +52,6 @@ android:title="@string/lockpattern_settings_enable_power_button_instantly_locks"/> <PreferenceScreen - android:key="choose_user_selected_lockscreen_widget" - android:title="@string/choose_user_selected_lockscreen_widget_picker_title" - android:summary="" - android:persistent="false"/> - - <PreferenceScreen android:fragment="com.android.settings.OwnerInfoSettings" android:key="owner_info_settings" android:title="@string/owner_info_settings_title" diff --git a/res/xml/security_settings_chooser.xml b/res/xml/security_settings_chooser.xml index 98422ba..60d3a9f 100644 --- a/res/xml/security_settings_chooser.xml +++ b/res/xml/security_settings_chooser.xml @@ -27,12 +27,6 @@ android:persistent="false"/> <PreferenceScreen - android:key="choose_user_selected_lockscreen_widget" - android:title="@string/choose_user_selected_lockscreen_widget_picker_title" - android:summary="" - android:persistent="false"/> - - <PreferenceScreen android:fragment="com.android.settings.OwnerInfoSettings" android:key="owner_info_settings" android:title="@string/owner_info_settings_title" diff --git a/res/xml/security_settings_password.xml b/res/xml/security_settings_password.xml index 8374a13..0e9c71d 100644 --- a/res/xml/security_settings_password.xml +++ b/res/xml/security_settings_password.xml @@ -39,12 +39,6 @@ android:title="@string/lockpattern_settings_enable_power_button_instantly_locks"/> <PreferenceScreen - android:key="choose_user_selected_lockscreen_widget" - android:title="@string/choose_user_selected_lockscreen_widget_picker_title" - android:summary="" - android:persistent="false"/> - - <PreferenceScreen android:fragment="com.android.settings.OwnerInfoSettings" android:key="owner_info_settings" android:title="@string/owner_info_settings_title" diff --git a/res/xml/security_settings_pattern.xml b/res/xml/security_settings_pattern.xml index 8015785..d47a99d 100644 --- a/res/xml/security_settings_pattern.xml +++ b/res/xml/security_settings_pattern.xml @@ -43,12 +43,6 @@ android:title="@string/lockpattern_settings_enable_power_button_instantly_locks"/> <PreferenceScreen - android:key="choose_user_selected_lockscreen_widget" - android:title="@string/choose_user_selected_lockscreen_widget_picker_title" - android:summary="" - android:persistent="false"/> - - <PreferenceScreen android:fragment="com.android.settings.OwnerInfoSettings" android:key="owner_info_settings" android:title="@string/owner_info_settings_title" diff --git a/res/xml/security_settings_pin.xml b/res/xml/security_settings_pin.xml index 70e95bd..d44200f 100644 --- a/res/xml/security_settings_pin.xml +++ b/res/xml/security_settings_pin.xml @@ -39,12 +39,6 @@ android:title="@string/lockpattern_settings_enable_power_button_instantly_locks"/> <PreferenceScreen - android:key="choose_user_selected_lockscreen_widget" - android:title="@string/choose_user_selected_lockscreen_widget_picker_title" - android:summary="" - android:persistent="false"/> - - <PreferenceScreen android:fragment="com.android.settings.OwnerInfoSettings" android:key="owner_info_settings" android:title="@string/owner_info_settings_title" |