diff options
author | John Reck <jreck@google.com> | 2013-05-22 16:47:01 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-05-22 16:47:01 -0700 |
commit | 3d83a13d9c0e60e7a3f7227a8263226dc0c3c00a (patch) | |
tree | a7c14a2d9f8a777ad84167a5c4b8e51cd24b2042 /src/com | |
parent | 4e6549b0a894c8c95a105b95f0bd421817ae9c25 (diff) | |
parent | 15074e2673f2165188e71dc3d2470f0093fa71e7 (diff) | |
download | android_packages_apps_Snap-3d83a13d9c0e60e7a3f7227a8263226dc0c3c00a.tar.gz android_packages_apps_Snap-3d83a13d9c0e60e7a3f7227a8263226dc0c3c00a.tar.bz2 android_packages_apps_Snap-3d83a13d9c0e60e7a3f7227a8263226dc0c3c00a.zip |
am 01ae91aa: Merge "Fix height" into gb-ub-photos-bryce
* commit '01ae91aa0e347c5a8b335afc8cb0f02459ee5adc':
Fix height
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/gallery3d/filtershow/category/CategoryAdapter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java b/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java index 0a65cd92f..4dfaa7fe5 100644 --- a/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java +++ b/src/com/android/gallery3d/filtershow/category/CategoryAdapter.java @@ -34,7 +34,7 @@ import com.android.gallery3d.filtershow.ui.FilterIconButton; public class CategoryAdapter extends ArrayAdapter<Action> { private static final String LOGTAG = "CategoryAdapter"; - private int mItemHeight = 200; + private int mItemHeight; private View mContainer; private int mItemWidth = ListView.LayoutParams.MATCH_PARENT; private boolean mUseFilterIconButton = false; @@ -43,6 +43,7 @@ public class CategoryAdapter extends ArrayAdapter<Action> { public CategoryAdapter(Context context, int textViewResourceId) { super(context, textViewResourceId); + mItemHeight = (int) (context.getResources().getDisplayMetrics().density * 100); } public CategoryAdapter(Context context) { |