diff options
author | Winson Chung <winsonc@google.com> | 2015-05-05 17:21:58 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2015-05-06 20:37:10 -0700 |
commit | 83f59abc9c566da5deb98afe7ea35cfb061f2920 (patch) | |
tree | e58dc1258700ee73674b6018f243010bb2591eb6 /res/layout | |
parent | 04ac4faab0336e30f0879311432a2377e2631df1 (diff) | |
download | android_packages_apps_Trebuchet-83f59abc9c566da5deb98afe7ea35cfb061f2920.tar.gz android_packages_apps_Trebuchet-83f59abc9c566da5deb98afe7ea35cfb061f2920.tar.bz2 android_packages_apps_Trebuchet-83f59abc9c566da5deb98afe7ea35cfb061f2920.zip |
Explorations in dense grids for all apps.
- Adds sticky section headers
- Removing AppsListAdapter
- Adding search bar field
- Subtitle filtering
Bug: 20222023
Change-Id: I1eaef701b5d68f475615f09d86561eacc91c937f
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/apps_list_view.xml | 63 |
1 files changed, 48 insertions, 15 deletions
diff --git a/res/layout/apps_list_view.xml b/res/layout/apps_list_view.xml index dfb7b588d..e29cac5e1 100644 --- a/res/layout/apps_list_view.xml +++ b/res/layout/apps_list_view.xml @@ -22,22 +22,55 @@ android:elevation="15dp" android:visibility="gone" android:focusableInTouchMode="true"> - <EditText - android:id="@+id/app_search_box" + <FrameLayout + android:id="@+id/header" android:layout_width="match_parent" - android:layout_height="wrap_content" - android:padding="16dp" - android:hint="@string/apps_view_search_bar_hint" - android:maxLines="1" - android:singleLine="true" - android:scrollHorizontally="true" - android:gravity="fill_horizontal" - android:textSize="16sp" - android:textColor="#4c4c4c" - android:textColorHint="#9c9c9c" - android:imeOptions="actionDone|flagNoExtractUi" - android:background="@drawable/apps_search_bg" - android:elevation="4dp" /> + android:layout_height="52dp" + android:orientation="horizontal" + android:background="@drawable/apps_search_bg"> + <LinearLayout + android:id="@+id/app_search_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:visibility="invisible"> + <ImageView + android:id="@+id/dismiss_search_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="start|center_vertical" + android:paddingTop="12dp" + android:paddingBottom="12dp" + android:contentDescription="@string/all_apps_button_label" + android:src="@drawable/ic_arrow_back_grey" /> + <EditText + android:id="@+id/app_search_box" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingLeft="8dp" + android:hint="@string/apps_view_search_bar_hint" + android:maxLines="1" + android:singleLine="true" + android:scrollHorizontally="true" + android:gravity="fill_horizontal" + android:textSize="16sp" + android:textColor="#4c4c4c" + android:textColorHint="#9c9c9c" + android:imeOptions="actionDone|flagNoExtractUi" + android:background="@android:color/transparent" /> + </LinearLayout> + <ImageView + android:id="@+id/search_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="end|center_vertical" + android:paddingTop="12dp" + android:paddingBottom="12dp" + android:contentDescription="@string/apps_view_search_bar_hint" + android:src="@drawable/ic_search_grey" /> + </FrameLayout> <com.android.launcher3.AppsContainerRecyclerView android:id="@+id/apps_list_view" android:layout_width="match_parent" |