diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2018-03-30 17:10:13 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2018-04-02 12:28:47 -0700 |
commit | 2fd7a8bc596f6ec28098b8566203d3b552ac2d39 (patch) | |
tree | 4192dc993f8a24ffcbebe7ddea590541599aeecc /res/layout | |
parent | 415a1402d5894f6b9455267c88bdcbc0f0ab8174 (diff) | |
download | android_packages_apps_Trebuchet-2fd7a8bc596f6ec28098b8566203d3b552ac2d39.tar.gz android_packages_apps_Trebuchet-2fd7a8bc596f6ec28098b8566203d3b552ac2d39.tar.bz2 android_packages_apps_Trebuchet-2fd7a8bc596f6ec28098b8566203d3b552ac2d39.zip |
Updating the UI of the options popup to make it look similar to icon popup
Bug: 77327164
Change-Id: I3580df8bf8a43cb44123f203ffed9a85fa33aea7
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/longpress_options_menu.xml | 84 |
1 files changed, 6 insertions, 78 deletions
diff --git a/res/layout/longpress_options_menu.xml b/res/layout/longpress_options_menu.xml index 71d117af8..168dbc3a2 100644 --- a/res/layout/longpress_options_menu.xml +++ b/res/layout/longpress_options_menu.xml @@ -15,83 +15,11 @@ --> <com.android.launcher3.views.OptionsPopupView xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:launcher="http://schemas.android.com/apk/res-auto" - android:layout_width="match_parent" - android:layout_height="96dp" + android:id="@+id/deep_shortcuts_container" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:background="?attr/popupColorPrimary" + android:clipToPadding="false" + android:clipChildren="false" android:elevation="@dimen/deep_shortcuts_elevation" - android:orientation="horizontal" - launcher:layout_ignoreInsets="true"> - - <FrameLayout - android:id="@+id/wallpaper_button" - android:layout_width="0dp" - android:layout_height="match_parent" - android:layout_weight="1" - android:background="?android:attr/selectableItemBackground"> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:drawablePadding="4dp" - android:drawableTint="?android:attr/textColorPrimary" - android:drawableTop="@drawable/ic_wallpaper" - android:fontFamily="sans-serif-condensed" - android:gravity="center" - android:paddingLeft="16dp" - android:paddingRight="16dp" - android:text="@string/wallpaper_button_text" - android:textColor="?android:attr/textColorPrimary" - android:textSize="12sp"/> - </FrameLayout> - - <FrameLayout - android:id="@+id/widget_button" - android:layout_width="0dp" - android:layout_height="match_parent" - android:layout_weight="1" - android:background="?android:attr/selectableItemBackground"> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:drawablePadding="4dp" - android:drawableTint="?android:attr/textColorPrimary" - android:drawableTop="@drawable/ic_widget" - android:fontFamily="sans-serif-condensed" - android:gravity="center" - android:paddingLeft="16dp" - android:paddingRight="16dp" - android:text="@string/widget_button_text" - android:textColor="?android:attr/textColorPrimary" - android:textSize="12sp"/> - - </FrameLayout> - - <FrameLayout - android:id="@+id/settings_button" - android:layout_width="0dp" - android:layout_height="match_parent" - android:layout_weight="1" - android:background="?android:attr/selectableItemBackground"> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:drawablePadding="4dp" - android:drawableTint="?android:attr/textColorPrimary" - android:drawableTop="@drawable/ic_setting" - android:fontFamily="sans-serif-condensed" - android:gravity="center" - android:paddingLeft="16dp" - android:paddingRight="16dp" - android:text="@string/settings_button_text" - android:textColor="?android:attr/textColorPrimary" - android:textSize="12sp"/> - - </FrameLayout> - -</com.android.launcher3.views.OptionsPopupView>
\ No newline at end of file + android:orientation="vertical" /> |