diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-05-09 12:40:11 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-05-09 12:41:50 -0700 |
commit | 60820d796f5789ac0d1d478f1d3c8e403fd0a56f (patch) | |
tree | c814235577092af480a383e82c09d43035642ff1 /res | |
parent | 161f96bc77805ed87f831b68e51fad61a23153bc (diff) | |
download | android_packages_apps_Trebuchet-60820d796f5789ac0d1d478f1d3c8e403fd0a56f.tar.gz android_packages_apps_Trebuchet-60820d796f5789ac0d1d478f1d3c8e403fd0a56f.tar.bz2 android_packages_apps_Trebuchet-60820d796f5789ac0d1d478f1d3c8e403fd0a56f.zip |
Adding listener support for color extraction changes
Changing the apps-search layout to use theme attribute instead of hard
coded layout id
Bug: 37616877
Change-Id: Iae601758303f83a2774635f0d88f74d99fc643c3
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/all_apps.xml | 6 | ||||
-rw-r--r-- | res/layout/all_apps_search_container.xml | 6 | ||||
-rw-r--r-- | res/values-sw720dp/styles.xml | 1 | ||||
-rw-r--r-- | res/values/styles.xml | 1 |
4 files changed, 9 insertions, 5 deletions
diff --git a/res/layout/all_apps.xml b/res/layout/all_apps.xml index 7d97f2564..f3539dcfa 100644 --- a/res/layout/all_apps.xml +++ b/res/layout/all_apps.xml @@ -59,13 +59,15 @@ <!-- Fast scroller popup --> <TextView style="@style/FastScrollerPopup" - android:layout_below="@+id/search_container" + android:layout_alignTop="@+id/apps_list_view" android:id="@+id/fast_scroller_popup" android:layout_alignParentEnd="true" android:layout_marginEnd="@dimen/container_fastscroll_popup_margin" /> + <!-- Note: we are reusing/repurposing a system attribute for search layout, because of a + platform bug, which prevents using custom attributes in <include> tag --> <include - layout="@layout/all_apps_search_container" + layout="?android:attr/keyboardLayout" android:id="@+id/search_container" /> </com.android.launcher3.allapps.AllAppsRecyclerViewContainerView> diff --git a/res/layout/all_apps_search_container.xml b/res/layout/all_apps_search_container.xml index 6addee1e2..c79360f66 100644 --- a/res/layout/all_apps_search_container.xml +++ b/res/layout/all_apps_search_container.xml @@ -15,28 +15,28 @@ --> <com.android.launcher3.allapps.search.AppsSearchContainerLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/search_container" android:layout_width="match_parent" android:layout_height="@dimen/all_apps_search_bar_height" android:layout_gravity="center|top" android:gravity="center|bottom" - android:id="@+id/search_container" android:saveEnabled="false"> <com.android.launcher3.ExtendedEditText android:id="@+id/search_box_input" android:layout_width="match_parent" android:layout_height="@dimen/all_apps_search_bar_field_height" - android:background="@android:color/transparent" android:layout_gravity="bottom" + android:background="@android:color/transparent" android:focusableInTouchMode="true" android:gravity="center" + android:hint="@string/all_apps_search_bar_hint" android:imeOptions="actionSearch|flagNoExtractUi" android:inputType="text|textNoSuggestions|textCapWords" android:maxLines="1" android:scrollHorizontally="true" android:singleLine="true" android:textColor="?android:attr/textColorSecondary" - android:hint="@string/all_apps_search_bar_hint" android:textColorHint="@drawable/all_apps_search_hint" android:textSize="16sp" /> </com.android.launcher3.allapps.search.AppsSearchContainerLayout>
\ No newline at end of file diff --git a/res/values-sw720dp/styles.xml b/res/values-sw720dp/styles.xml index de809b105..bc65a0e9a 100644 --- a/res/values-sw720dp/styles.xml +++ b/res/values-sw720dp/styles.xml @@ -26,6 +26,7 @@ <item name="android:windowNoTitle">true</item> <item name="android:windowActionModeOverlay">true</item> <item name="android:colorEdgeEffect">?android:attr/textColorSecondary</item> + <item name="android:keyboardLayout">@layout/all_apps_search_container</item> </style> <!-- Workspace --> diff --git a/res/values/styles.xml b/res/values/styles.xml index c3d11e446..e2d9ff486 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -25,6 +25,7 @@ <item name="android:windowShowWallpaper">true</item> <item name="android:windowNoTitle">true</item> <item name="android:colorEdgeEffect">#FF757575</item> + <item name="android:keyboardLayout">@layout/all_apps_search_container</item> </style> <style name="LauncherTheme" parent="@style/BaseLauncherTheme"></style> |