diff options
author | Stephen Bird <sbird@cyngn.com> | 2015-07-31 14:57:24 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-11-02 21:21:42 -0700 |
commit | 2892dc60c727ef3e9bd2d3118061ae07c4a20732 (patch) | |
tree | 58604fdf24792324e4fbc3868cb05ab288ecada4 /res | |
parent | 27c778a6bf2f91eb2df6c6673996f34922f22df1 (diff) | |
download | android_packages_apps_CMFileManager-2892dc60c727ef3e9bd2d3118061ae07c4a20732.tar.gz android_packages_apps_CMFileManager-2892dc60c727ef3e9bd2d3118061ae07c4a20732.tar.bz2 android_packages_apps_CMFileManager-2892dc60c727ef3e9bd2d3118061ae07c4a20732.zip |
Quick Search: Bring Design up to par
Change-Id: I5fd21e4bdc916e11a37e465d25ce040831190e34
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/home_fragment.xml | 15 | ||||
-rw-r--r-- | res/layout/quick_search_item.xml | 38 | ||||
-rw-r--r-- | res/values/dimen.xml | 7 | ||||
-rw-r--r-- | res/values/strings.xml | 11 |
4 files changed, 68 insertions, 3 deletions
diff --git a/res/layout/home_fragment.xml b/res/layout/home_fragment.xml index 383c8b15..2dc24c03 100644 --- a/res/layout/home_fragment.xml +++ b/res/layout/home_fragment.xml @@ -48,12 +48,23 @@ </android.support.v7.widget.CardView> + <TextView + android:text="@string/quick_search" + android:id="@+id/cardChildText" + android:textSize="14sp" + android:layout_marginStart="@dimen/quick_search_text_margin_left" + android:layout_marginTop="@dimen/quick_search_text_margin_top" + android:layout_marginBottom="@dimen/quick_search_text_margin_top" + android:layout_gravity="center_vertical" + android:layout_width="match_parent" + android:layout_height="@dimen/quick_search_text_height" /> + <com.cyanogenmod.filemanager.ui.widgets.WrappedGridView - android:id="@+id/easy_modeView" + android:id="@+id/quick_search_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:columnWidth="90dp" - android:numColumns="auto_fit" + android:numColumns="3" android:verticalSpacing="10dp" android:horizontalSpacing="10dp" android:stretchMode="columnWidth" diff --git a/res/layout/quick_search_item.xml b/res/layout/quick_search_item.xml new file mode 100644 index 00000000..7395ba9c --- /dev/null +++ b/res/layout/quick_search_item.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 The CyanogenMod 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. + --> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/navigation_view_details_item" + android:layout_width="match_parent" + android:layout_height="@dimen/quick_search_grid" + android:orientation="vertical"> + + <com.cyanogenmod.filemanager.ui.widgets.FixedSizeImageView + android:id="@+id/navigation_view_item_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical|center_horizontal" + android:scaleType="center" + android:contentDescription="@null" + android:src="@null" /> + + <TextView + android:id="@+id/navigation_view_item_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical|center_horizontal" /> + +</LinearLayout> diff --git a/res/values/dimen.xml b/res/values/dimen.xml index bdbe1035..f2b918fb 100644 --- a/res/values/dimen.xml +++ b/res/values/dimen.xml @@ -192,4 +192,11 @@ <!-- Search --> <dimen name="search_bar_height">48dp</dimen> <dimen name="search_image_dimensions">24dp</dimen> + + <!-- The quick search grid --> + <dimen name="quick_search_grid">80dp</dimen> + <dimen name="quick_search_text_margin_left">16dp</dimen> + <dimen name="quick_search_text_margin_top">15dp</dimen> + <dimen name="quick_search_text_height">16dp</dimen> + </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 98022ed3..203b819b 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -922,7 +922,16 @@ <string name="snackbar_unable_to_complete">Unable to complete action</string> <string name="snackbar_retry">RETRY</string> <string name="snackbar_upgrade">UPGRADE</string> - + <!-- File System info --> <string name="file_system_info_unavailable">Unable to fetch file system info for this path</string> + + <!-- Quick search strings --> + <string name="quick_search">Quick Search</string> + <string name="images">Images</string> + <string name="audio">Audio</string> + <string name="videos">Videos</string> + <string name="docs">Docs</string> + <string name="apps">Apps</string> + <string name="archives">Archives</string> </resources> |