diff options
author | Jason Monk <jmonk@google.com> | 2015-06-11 15:47:29 -0400 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2015-06-11 15:47:29 -0400 |
commit | 2acff556c25e788c47284c9fc837f27a1916b578 (patch) | |
tree | 4b1dc5ecf924e1d045efd7724a07ccd749bb171c /res | |
parent | 1fdbbffceda141404ae033a471bea20de8df60d4 (diff) | |
download | packages_apps_Settings-2acff556c25e788c47284c9fc837f27a1916b578.zip packages_apps_Settings-2acff556c25e788c47284c9fc837f27a1916b578.tar.gz packages_apps_Settings-2acff556c25e788c47284c9fc837f27a1916b578.tar.bz2 |
Clean up settings shortcuts
- Remove some bad entries
- Fix icons to be top-level item specific
- Add memory
Bug: 20632230
Change-Id: I067b467b9ee354b52ef61b312dc5a89fd7eae2ac
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-xxxhdpi/shortcut_base.png | bin | 0 -> 8711 bytes | |||
-rw-r--r-- | res/layout/shortcut_badge.xml | 34 | ||||
-rwxr-xr-x | res/values/dimens.xml | 3 |
3 files changed, 37 insertions, 0 deletions
diff --git a/res/drawable-xxxhdpi/shortcut_base.png b/res/drawable-xxxhdpi/shortcut_base.png Binary files differnew file mode 100644 index 0000000..cd509df --- /dev/null +++ b/res/drawable-xxxhdpi/shortcut_base.png diff --git a/res/layout/shortcut_badge.xml b/res/layout/shortcut_badge.xml new file mode 100644 index 0000000..117b386 --- /dev/null +++ b/res/layout/shortcut_badge.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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. +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="@dimen/shortcut_size" + android:layout_height="@dimen/shortcut_size"> + + <ImageView + android:layout_width="@dimen/shortcut_size" + android:layout_height="@dimen/shortcut_size" + android:scaleType="fitXY" + android:src="@drawable/shortcut_base" /> + + <ImageView + android:id="@android:id/icon" + android:layout_width="@dimen/shortcut_size" + android:layout_height="@dimen/shortcut_size" + android:padding="12dp" + android:scaleType="fitXY" /> + +</RelativeLayout> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 5891438..5f162b8 100755 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -244,4 +244,7 @@ <dimen name="mdm_app_info_height">72dp</dimen> <dimen name="mdm_app_info_padding_top_bottom">8dp</dimen> <dimen name="mdm_app_name_padding_left">16dp</dimen> + + <dimen name="shortcut_size">40dp</dimen> + <dimen name="badge_size">10dp</dimen> </resources> |