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/layout/popup_container.xml | |
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/layout/popup_container.xml')
-rw-r--r-- | res/layout/popup_container.xml | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/res/layout/popup_container.xml b/res/layout/popup_container.xml index 67db4a561..c73740771 100644 --- a/res/layout/popup_container.xml +++ b/res/layout/popup_container.xml @@ -19,11 +19,8 @@ android:id="@+id/deep_shortcuts_container" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:paddingTop="4dp" - android:paddingBottom="4dp" + android:background="?attr/popupColorPrimary" android:clipToPadding="false" android:clipChildren="false" android:elevation="@dimen/deep_shortcuts_elevation" - android:orientation="vertical"> - -</com.android.launcher3.popup.PopupContainerWithArrow>
\ No newline at end of file + android:orientation="vertical" />
\ No newline at end of file |