diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-11-09 15:24:06 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-11-15 16:43:20 -0800 |
commit | 00ac9202417cb5023b9990b2f6f33d321378ff26 (patch) | |
tree | 28cd25a215dbe9bb568aa1a11394a5ae38e3a8a6 /res/drawable | |
parent | ea529083bd45bae8edcb86d0be056ff90921d0c1 (diff) | |
download | android_packages_apps_Trebuchet-00ac9202417cb5023b9990b2f6f33d321378ff26.tar.gz android_packages_apps_Trebuchet-00ac9202417cb5023b9990b2f6f33d321378ff26.tar.bz2 android_packages_apps_Trebuchet-00ac9202417cb5023b9990b2f6f33d321378ff26.zip |
Simplifying app icon popup
> Using a single linearLayout instead of multiple nested views
> Using clipToOutline for rounded corners instead of using canvas.saveLayer
> Removing nested view elevations and overdraw
> Using LayoutTransition for animating layout changes, instead of manually creating animators
Change-Id: I8e57092f52ca5a032a2756594fdd39788acc5a0d
Diffstat (limited to 'res/drawable')
-rw-r--r-- | res/drawable/bg_notification_content.xml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/res/drawable/bg_notification_content.xml b/res/drawable/bg_notification_content.xml new file mode 100644 index 000000000..cf129eba8 --- /dev/null +++ b/res/drawable/bg_notification_content.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2017 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. +--> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:drawable="?attr/popupColorTertiary" /> + + <item android:height="3dp" android:top="0dp"> + <shape> + <gradient + android:angle="270" + android:endColor="@android:color/transparent" + android:startColor="#33000000" + android:type="linear" /> + </shape> + </item> +</layer-list> |