aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2015-03-19 17:13:51 -0700
committerJorge Ruesga <jorge@ruesga.com>2015-03-21 15:46:06 +0100
commitda04013334cb17a23245f33872b10238f82e4382 (patch)
tree5ef7cf77c1f9b48166cd39fbe372ac868979feba
parentfb259f02fa378706b90d98d1e2ae76641ea97a5f (diff)
downloadandroid_packages_apps_CMFileManager-da04013334cb17a23245f33872b10238f82e4382.tar.gz
android_packages_apps_CMFileManager-da04013334cb17a23245f33872b10238f82e4382.tar.bz2
android_packages_apps_CMFileManager-da04013334cb17a23245f33872b10238f82e4382.zip
CMFileManager: set search item icon to fixed width and centerCrop
Change-Id: If89a55a8d1212774709176ae9af7df6f761f9005
-rw-r--r--res/layout/search_item.xml15
1 files changed, 9 insertions, 6 deletions
diff --git a/res/layout/search_item.xml b/res/layout/search_item.xml
index 4a64f708..a46d599f 100644
--- a/res/layout/search_item.xml
+++ b/res/layout/search_item.xml
@@ -18,13 +18,17 @@
android:id="@+id/search_item"
android:layout_width="match_parent"
android:layout_height="@dimen/default_row_height"
- android:background="@drawable/material_selector" >
+ android:background="@drawable/material_selector"
+ android:paddingLeft="@dimen/extra_margin"
+ android:paddingRight="@dimen/extra_margin">
- <ImageView
+ <com.cyanogenmod.filemanager.ui.widgets.FixedSizeImageView
android:id="@+id/search_item_icon"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
+ android:layout_width="@dimen/default_row_height"
+ android:layout_height="@dimen/default_row_height"
android:layout_alignParentLeft="true"
+ android:layout_gravity="center_vertical"
+ android:scaleType="centerCrop"
android:contentDescription="@null"
android:src="@null" />
@@ -32,8 +36,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
- android:layout_toRightOf="@id/search_item_icon"
- android:layout_marginRight="@dimen/extra_margin" >
+ android:layout_toRightOf="@id/search_item_icon">
<TextView
android:id="@+id/search_item_name"