diff options
author | Peter Ng <petergng@google.com> | 2011-10-28 10:53:54 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-10-28 10:53:54 -0700 |
commit | 63dd319ebeea0421f8bf901b85b753dde1de74d7 (patch) | |
tree | a82fabea70798b3431b94bd0b9161015d2db0d52 | |
parent | 65793dc043eee43790137f79beeba7ed8b123902 (diff) | |
parent | c9a0d7dfda78def90a615504cb56445c4904424c (diff) |
Merge "Lockscreen on tablet is now using the same waveview widget as phone" into ics-mr1
-rw-r--r-- | core/res/res/drawable-sw600dp-hdpi/ic_lockscreen_handle_normal.png | bin | 0 -> 13316 bytes | |||
-rw-r--r-- | core/res/res/drawable-sw600dp-hdpi/ic_lockscreen_handle_pressed.png | bin | 0 -> 15564 bytes | |||
-rw-r--r-- | core/res/res/drawable-sw600dp-mdpi/ic_lockscreen_handle_normal.png | bin | 0 -> 6774 bytes | |||
-rw-r--r-- | core/res/res/drawable-sw600dp-mdpi/ic_lockscreen_handle_pressed.png | bin | 0 -> 8147 bytes | |||
-rw-r--r-- | core/res/res/drawable-sw600dp-xhdpi/ic_lockscreen_handle_normal.png | bin | 0 -> 21777 bytes | |||
-rw-r--r-- | core/res/res/drawable-sw600dp-xhdpi/ic_lockscreen_handle_pressed.png | bin | 0 -> 25531 bytes | |||
-rw-r--r-- | core/res/res/layout-sw600dp/keyguard_screen_tab_unlock.xml | 22 | ||||
-rw-r--r-- | core/res/res/layout-sw600dp/keyguard_screen_tab_unlock_land.xml | 22 | ||||
-rw-r--r-- | core/res/res/values-sw600dp-land/arrays.xml | 72 |
9 files changed, 109 insertions, 7 deletions
diff --git a/core/res/res/drawable-sw600dp-hdpi/ic_lockscreen_handle_normal.png b/core/res/res/drawable-sw600dp-hdpi/ic_lockscreen_handle_normal.png Binary files differnew file mode 100644 index 000000000000..f28fe38eb449 --- /dev/null +++ b/core/res/res/drawable-sw600dp-hdpi/ic_lockscreen_handle_normal.png diff --git a/core/res/res/drawable-sw600dp-hdpi/ic_lockscreen_handle_pressed.png b/core/res/res/drawable-sw600dp-hdpi/ic_lockscreen_handle_pressed.png Binary files differnew file mode 100644 index 000000000000..728fc6756e25 --- /dev/null +++ b/core/res/res/drawable-sw600dp-hdpi/ic_lockscreen_handle_pressed.png diff --git a/core/res/res/drawable-sw600dp-mdpi/ic_lockscreen_handle_normal.png b/core/res/res/drawable-sw600dp-mdpi/ic_lockscreen_handle_normal.png Binary files differnew file mode 100644 index 000000000000..99e742fa27a3 --- /dev/null +++ b/core/res/res/drawable-sw600dp-mdpi/ic_lockscreen_handle_normal.png diff --git a/core/res/res/drawable-sw600dp-mdpi/ic_lockscreen_handle_pressed.png b/core/res/res/drawable-sw600dp-mdpi/ic_lockscreen_handle_pressed.png Binary files differnew file mode 100644 index 000000000000..c7da0242730d --- /dev/null +++ b/core/res/res/drawable-sw600dp-mdpi/ic_lockscreen_handle_pressed.png diff --git a/core/res/res/drawable-sw600dp-xhdpi/ic_lockscreen_handle_normal.png b/core/res/res/drawable-sw600dp-xhdpi/ic_lockscreen_handle_normal.png Binary files differnew file mode 100644 index 000000000000..75e478310a1b --- /dev/null +++ b/core/res/res/drawable-sw600dp-xhdpi/ic_lockscreen_handle_normal.png diff --git a/core/res/res/drawable-sw600dp-xhdpi/ic_lockscreen_handle_pressed.png b/core/res/res/drawable-sw600dp-xhdpi/ic_lockscreen_handle_pressed.png Binary files differnew file mode 100644 index 000000000000..534c10bc08e0 --- /dev/null +++ b/core/res/res/drawable-sw600dp-xhdpi/ic_lockscreen_handle_pressed.png diff --git a/core/res/res/layout-sw600dp/keyguard_screen_tab_unlock.xml b/core/res/res/layout-sw600dp/keyguard_screen_tab_unlock.xml index d32cd0c050d5..23b2fcb891e5 100644 --- a/core/res/res/layout-sw600dp/keyguard_screen_tab_unlock.xml +++ b/core/res/res/layout-sw600dp/keyguard_screen_tab_unlock.xml @@ -57,11 +57,27 @@ android:drawablePadding="4dip" /> - <com.android.internal.widget.WaveView + <com.android.internal.widget.multiwaveview.MultiWaveView android:id="@+id/unlock_widget" - android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_alignParentBottom="true" android:layout_gravity="center" + + android:targetDrawables="@array/lockscreen_targets_with_camera" + android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera" + android:directionDescriptions="@array/lockscreen_direction_descriptions" + android:handleDrawable="@drawable/ic_lockscreen_handle" + android:waveDrawable="@drawable/ic_lockscreen_outerring" + android:outerRadius="@dimen/multiwaveview_target_placement_radius" + android:snapMargin="@dimen/multiwaveview_snap_margin" + android:hitRadius="@dimen/multiwaveview_hit_radius" + android:rightChevronDrawable="@drawable/ic_lockscreen_chevron_right" + android:horizontalOffset="0dip" + android:verticalOffset="60dip" + android:feedbackCount="3" + android:vibrationDuration="20" /> <!-- emergency call button shown when sim is PUKd and tab_selector is hidden --> diff --git a/core/res/res/layout-sw600dp/keyguard_screen_tab_unlock_land.xml b/core/res/res/layout-sw600dp/keyguard_screen_tab_unlock_land.xml index dd291644e4f3..66223f2f817d 100644 --- a/core/res/res/layout-sw600dp/keyguard_screen_tab_unlock_land.xml +++ b/core/res/res/layout-sw600dp/keyguard_screen_tab_unlock_land.xml @@ -61,13 +61,27 @@ android:layout_alignParentTop="true" android:drawablePadding="4dip"/> - <com.android.internal.widget.WaveView + <com.android.internal.widget.multiwaveview.MultiWaveView android:id="@+id/unlock_widget" - android:layout_width="wrap_content" + android:layout_width="match_parent" android:layout_height="match_parent" + android:layout_rowSpan="7" android:layout_gravity="center_vertical|center_horizontal" - android:layout_marginRight="0dip" - android:layout_weight="1.0"/> + + android:targetDrawables="@array/lockscreen_targets_with_camera" + android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera" + android:directionDescriptions="@array/lockscreen_direction_descriptions" + android:handleDrawable="@drawable/ic_lockscreen_handle" + android:waveDrawable="@drawable/ic_lockscreen_outerring" + android:outerRadius="@dimen/multiwaveview_target_placement_radius" + android:snapMargin="@dimen/multiwaveview_snap_margin" + android:hitRadius="@dimen/multiwaveview_hit_radius" + android:rightChevronDrawable="@drawable/ic_lockscreen_chevron_right" + android:feedbackCount="3" + android:vibrationDuration="20" + android:horizontalOffset="0dip" + android:verticalOffset="0dip" + /> <!-- emergency call button shown when sim is PUKd and tab_selector is hidden --> <Button diff --git a/core/res/res/values-sw600dp-land/arrays.xml b/core/res/res/values-sw600dp-land/arrays.xml new file mode 100644 index 000000000000..6304bc0c5dd6 --- /dev/null +++ b/core/res/res/values-sw600dp-land/arrays.xml @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* //device/apps/common/assets/res/any/colors.xml +** +** Copyright 2006, 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:xliff="urn:oasis:names:tc:xliff:document:1.2"> + + <!-- Resources for MultiWaveView in LockScreen --> + <array name="lockscreen_targets_when_silent"> + <item>@drawable/ic_lockscreen_unlock</item> + <item>@null</item> + <item>@drawable/ic_lockscreen_soundon</item> + <item>@null</item> + </array> + + <array name="lockscreen_target_descriptions_when_silent"> + <item>@string/description_target_unlock</item> + <item>@null</item> + <item>@string/description_target_soundon</item> + <item>@null</item> + </array> + + <array name="lockscreen_direction_descriptions"> + <item>@string/description_direction_right</item> + <item>@null</item> + <item>@string/description_direction_left</item> + <item>@null</item> + </array> + + <array name="lockscreen_targets_when_soundon"> + <item>@drawable/ic_lockscreen_unlock</item> + <item>@null</item> + <item>@drawable/ic_lockscreen_silent</item> + <item>@null</item> + </array> + + <array name="lockscreen_target_descriptions_when_soundon"> + <item>@string/description_target_unlock</item> + <item>@null</item> + <item>@string/description_target_silent</item> + <item>@null</item> + </array> + + <array name="lockscreen_targets_with_camera"> + <item>@drawable/ic_lockscreen_unlock</item> + <item>@null</item> + <item>@drawable/ic_lockscreen_camera</item> + <item>@null</item> + </array> + + <array name="lockscreen_target_descriptions_with_camera"> + <item>@string/description_target_unlock</item> + <item>@null</item> + <item>@string/description_target_camera</item> + <item>@null</item> + </array> + +</resources> |