summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/layout/filtershow_category_panel_new.xml4
-rw-r--r--res/values-large/filtershow_values.xml6
-rw-r--r--res/values-xlarge/filtershow_values.xml6
-rw-r--r--res/values/filtershow_values.xml5
-rw-r--r--src/com/android/gallery3d/filtershow/category/Action.java2
-rw-r--r--src/com/android/gallery3d/filtershow/tools/IconFactory.java2
6 files changed, 21 insertions, 4 deletions
diff --git a/res/layout/filtershow_category_panel_new.xml b/res/layout/filtershow_category_panel_new.xml
index 0dce4986f..e98f29ea6 100644
--- a/res/layout/filtershow_category_panel_new.xml
+++ b/res/layout/filtershow_category_panel_new.xml
@@ -30,8 +30,8 @@
<com.android.gallery3d.filtershow.category.CategoryTrack
android:id="@+id/listItems"
android:layout_width="match_parent"
- android:layout_height="128dip"
- custom:iconSize="84dip"
+ android:layout_height="@dimen/category_panel_height"
+ custom:iconSize="@dimen/category_panel_icon_size"
android:divider="@android:color/transparent"
android:dividerPadding="8dip"
/>
diff --git a/res/values-large/filtershow_values.xml b/res/values-large/filtershow_values.xml
index 1098ee0bd..3b05c2c9a 100644
--- a/res/values-large/filtershow_values.xml
+++ b/res/values-large/filtershow_values.xml
@@ -17,4 +17,10 @@
<resources>
<!-- Specify the screen orientation -->
<bool name="only_use_portrait">false</bool>
+
+ <!-- Category Panel Height -->
+ <dimen name="category_panel_height">94dip</dimen>
+
+ <!-- Category Panel Icon Size -->
+ <dimen name="category_panel_icon_size">72dip</dimen>
</resources> \ No newline at end of file
diff --git a/res/values-xlarge/filtershow_values.xml b/res/values-xlarge/filtershow_values.xml
index 1098ee0bd..1b47f3f06 100644
--- a/res/values-xlarge/filtershow_values.xml
+++ b/res/values-xlarge/filtershow_values.xml
@@ -17,4 +17,10 @@
<resources>
<!-- Specify the screen orientation -->
<bool name="only_use_portrait">false</bool>
+
+ <!-- Category Panel Height -->
+ <dimen name="category_panel_height">106dip</dimen>
+
+ <!-- Category Panel Icon Size -->
+ <dimen name="category_panel_icon_size">84dip</dimen>
</resources> \ No newline at end of file
diff --git a/res/values/filtershow_values.xml b/res/values/filtershow_values.xml
index 53971b833..a01197de2 100644
--- a/res/values/filtershow_values.xml
+++ b/res/values/filtershow_values.xml
@@ -21,4 +21,9 @@
<!-- Text size for the state panel -->
<dimen name="state_panel_text_size">16dip</dimen>
+ <!-- Category Panel Height -->
+ <dimen name="category_panel_height">86dip</dimen>
+
+ <!-- Category Panel Icon Size -->
+ <dimen name="category_panel_icon_size">64dip</dimen>
</resources> \ No newline at end of file
diff --git a/src/com/android/gallery3d/filtershow/category/Action.java b/src/com/android/gallery3d/filtershow/category/Action.java
index 506b2bf0f..b46147961 100644
--- a/src/com/android/gallery3d/filtershow/category/Action.java
+++ b/src/com/android/gallery3d/filtershow/category/Action.java
@@ -134,7 +134,7 @@ public class Action implements RenderingRequestCaller {
m.mapRect(image);
m.setRectToRect(image, frame, Matrix.ScaleToFit.FILL);
Canvas canvas = new Canvas(destination);
- canvas.drawBitmap(source, m, new Paint());
+ canvas.drawBitmap(source, m, new Paint(Paint.FILTER_BITMAP_FLAG));
}
@Override
diff --git a/src/com/android/gallery3d/filtershow/tools/IconFactory.java b/src/com/android/gallery3d/filtershow/tools/IconFactory.java
index ccc49e13d..9e39f27fc 100644
--- a/src/com/android/gallery3d/filtershow/tools/IconFactory.java
+++ b/src/com/android/gallery3d/filtershow/tools/IconFactory.java
@@ -103,6 +103,6 @@ public class IconFactory {
rec.roundOut(srcRect);
}
- canvas.drawBitmap(sourceImage, srcRect, destRect, new Paint());
+ canvas.drawBitmap(sourceImage, srcRect, destRect, new Paint(Paint.FILTER_BITMAP_FLAG));
}
}