diff options
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> |