diff options
author | Jorim Jaggi <jjaggi@google.com> | 2014-05-06 12:12:35 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-06 12:12:35 +0000 |
commit | 3989bf68fd15ef8458cb73545a468c495f3ff2b2 (patch) | |
tree | 7fe976260803eb14560ca3960e1596a81e729484 /packages/SystemUI/res | |
parent | dcf2d73238dab056b28bd2a117705b425e4bcac7 (diff) | |
parent | dba6ca00c3b9dc8a6288ec7095afde211b3fa681 (diff) | |
download | frameworks_base-3989bf68fd15ef8458cb73545a468c495f3ff2b2.zip frameworks_base-3989bf68fd15ef8458cb73545a468c495f3ff2b2.tar.gz frameworks_base-3989bf68fd15ef8458cb73545a468c495f3ff2b2.tar.bz2 |
am 6ea37298: Merge "Implement phone affordance on lockscreen."
* commit '6ea372988f0732183590c021c65d392bf419dafd':
Implement phone affordance on lockscreen.
Diffstat (limited to 'packages/SystemUI/res')
18 files changed, 30 insertions, 8 deletions
diff --git a/packages/SystemUI/res/drawable-hdpi/ic_camera_alt_24dp.png b/packages/SystemUI/res/drawable-hdpi/ic_camera_alt_24dp.png Binary files differnew file mode 100644 index 0000000..253c737 --- /dev/null +++ b/packages/SystemUI/res/drawable-hdpi/ic_camera_alt_24dp.png diff --git a/packages/SystemUI/res/drawable-hdpi/ic_phone_24dp.png b/packages/SystemUI/res/drawable-hdpi/ic_phone_24dp.png Binary files differnew file mode 100644 index 0000000..a6a6448 --- /dev/null +++ b/packages/SystemUI/res/drawable-hdpi/ic_phone_24dp.png diff --git a/packages/SystemUI/res/drawable-hdpi/ic_sysbar_camera.png b/packages/SystemUI/res/drawable-hdpi/ic_sysbar_camera.png Binary files differdeleted file mode 100644 index c6f03c4..0000000 --- a/packages/SystemUI/res/drawable-hdpi/ic_sysbar_camera.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-mdpi/ic_camera_alt_24dp.png b/packages/SystemUI/res/drawable-mdpi/ic_camera_alt_24dp.png Binary files differnew file mode 100644 index 0000000..ee1187b --- /dev/null +++ b/packages/SystemUI/res/drawable-mdpi/ic_camera_alt_24dp.png diff --git a/packages/SystemUI/res/drawable-mdpi/ic_phone_24dp.png b/packages/SystemUI/res/drawable-mdpi/ic_phone_24dp.png Binary files differnew file mode 100644 index 0000000..2286bb4 --- /dev/null +++ b/packages/SystemUI/res/drawable-mdpi/ic_phone_24dp.png diff --git a/packages/SystemUI/res/drawable-mdpi/ic_sysbar_camera.png b/packages/SystemUI/res/drawable-mdpi/ic_sysbar_camera.png Binary files differdeleted file mode 100644 index 1c2d7aa..0000000 --- a/packages/SystemUI/res/drawable-mdpi/ic_sysbar_camera.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-xhdpi/ic_camera_alt_24dp.png b/packages/SystemUI/res/drawable-xhdpi/ic_camera_alt_24dp.png Binary files differnew file mode 100644 index 0000000..268eba0 --- /dev/null +++ b/packages/SystemUI/res/drawable-xhdpi/ic_camera_alt_24dp.png diff --git a/packages/SystemUI/res/drawable-xhdpi/ic_phone_24dp.png b/packages/SystemUI/res/drawable-xhdpi/ic_phone_24dp.png Binary files differnew file mode 100644 index 0000000..cd9ff60 --- /dev/null +++ b/packages/SystemUI/res/drawable-xhdpi/ic_phone_24dp.png diff --git a/packages/SystemUI/res/drawable-xhdpi/ic_sysbar_camera.png b/packages/SystemUI/res/drawable-xhdpi/ic_sysbar_camera.png Binary files differdeleted file mode 100644 index fbd4d6b..0000000 --- a/packages/SystemUI/res/drawable-xhdpi/ic_sysbar_camera.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-xxhdpi/ic_camera_alt_24dp.png b/packages/SystemUI/res/drawable-xxhdpi/ic_camera_alt_24dp.png Binary files differnew file mode 100644 index 0000000..9175118 --- /dev/null +++ b/packages/SystemUI/res/drawable-xxhdpi/ic_camera_alt_24dp.png diff --git a/packages/SystemUI/res/drawable-xxhdpi/ic_phone_24dp.png b/packages/SystemUI/res/drawable-xxhdpi/ic_phone_24dp.png Binary files differnew file mode 100644 index 0000000..3c546e5 --- /dev/null +++ b/packages/SystemUI/res/drawable-xxhdpi/ic_phone_24dp.png diff --git a/packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_camera.png b/packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_camera.png Binary files differdeleted file mode 100644 index 86df881..0000000 --- a/packages/SystemUI/res/drawable-xxhdpi/ic_sysbar_camera.png +++ /dev/null diff --git a/packages/SystemUI/res/drawable-xxxhdpi/ic_camera_alt_24dp.png b/packages/SystemUI/res/drawable-xxxhdpi/ic_camera_alt_24dp.png Binary files differnew file mode 100644 index 0000000..20e26b8 --- /dev/null +++ b/packages/SystemUI/res/drawable-xxxhdpi/ic_camera_alt_24dp.png diff --git a/packages/SystemUI/res/drawable-xxxhdpi/ic_phone_24dp.png b/packages/SystemUI/res/drawable-xxxhdpi/ic_phone_24dp.png Binary files differnew file mode 100644 index 0000000..4f7da0a --- /dev/null +++ b/packages/SystemUI/res/drawable-xxxhdpi/ic_phone_24dp.png diff --git a/packages/SystemUI/res/layout/keyguard_bottom_area.xml b/packages/SystemUI/res/layout/keyguard_bottom_area.xml index 809adcd..ec5acba 100644 --- a/packages/SystemUI/res/layout/keyguard_bottom_area.xml +++ b/packages/SystemUI/res/layout/keyguard_bottom_area.xml @@ -22,15 +22,29 @@ android:layout_height="match_parent" android:layout_width="match_parent" > - <com.android.systemui.statusbar.policy.KeyButtonView + <com.android.systemui.statusbar.phone.SwipeAffordanceView android:id="@+id/camera_button" - android:layout_height="80dp" - android:layout_width="80dp" - android:layout_gravity="bottom|right" - android:src="@drawable/ic_sysbar_camera" + android:layout_height="64dp" + android:layout_width="64dp" + android:layout_gravity="bottom|end" + android:tint="#ffffffff" + android:src="@drawable/ic_camera_alt_24dp" android:scaleType="center" android:contentDescription="@string/accessibility_camera_button" - systemui:glowBackground="@drawable/ic_sysbar_highlight_land" /> + systemui:glowBackground="@drawable/ic_sysbar_highlight_land" + systemui:swipeDirection="start"/> + + <com.android.systemui.statusbar.phone.SwipeAffordanceView + android:id="@+id/phone_button" + android:layout_height="64dp" + android:layout_width="64dp" + android:layout_gravity="bottom|start" + android:tint="#ffffffff" + android:src="@drawable/ic_phone_24dp" + android:scaleType="center" + android:contentDescription="@string/accessibility_phone_button" + systemui:glowBackground="@drawable/ic_sysbar_highlight_land" + systemui:swipeDirection="end"/> <com.android.systemui.statusbar.phone.KeyguardIndicationTextView android:id="@+id/keyguard_indication_text" diff --git a/packages/SystemUI/res/values/attrs.xml b/packages/SystemUI/res/values/attrs.xml index 734abdc..f5674d2 100644 --- a/packages/SystemUI/res/values/attrs.xml +++ b/packages/SystemUI/res/values/attrs.xml @@ -45,6 +45,12 @@ <declare-styleable name="BatteryMeterView"> <attr name="frameColor" format="color" /> </declare-styleable> + <declare-styleable name="SwipeAffordanceView"> + <attr name="swipeDirection" format="enum"> + <enum name="start" value="0" /> + <enum name="end" value="1" /> + </attr> + </declare-styleable> <attr name="orientation"> <enum name="horizontal" value="0" /> <enum name="vertical" value="1" /> diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index 1900fea..28de6ac 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -258,8 +258,8 @@ <!-- Width of the zen mode interstitial dialog. --> <dimen name="zen_mode_dialog_width">320dp</dimen> - <!-- Camera affordance drag distance --> - <dimen name="camera_drag_distance">100dp</dimen> + <!-- Lockscreen affordance drag distance for camera and phone. --> + <dimen name="affordance_drag_distance">100dp</dimen> <dimen name="quick_settings_tmp_scrim_stroke_width">8dp</dimen> <dimen name="quick_settings_tmp_scrim_text_size">30dp</dimen> diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index b4a13d4..3f0a60f 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -196,6 +196,8 @@ <string name="accessibility_search_light">Search</string> <!-- Content description of the camera button for accessibility (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_camera_button">Camera</string> + <!-- Content description of the phone button for accessibility (not shown on the screen). [CHAR LIMIT=NONE] --> + <string name="accessibility_phone_button">Phone</string> <!-- Content description of the switch input method button for accessibility (not shown on the screen). [CHAR LIMIT=NONE] --> <string name="accessibility_ime_switch_button">Switch input method button.</string> |