summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2012-10-24 16:39:41 -0700
committernicolasroard <nicolasroard@google.com>2012-10-24 16:40:43 -0700
commit028c39fdda797ea6cd5a507a1164c656f3c73b97 (patch)
tree98991b03570dec11e70a55240b8be8a05927d66b /src/com
parentfbc5472790ad2f6e142a6814d812a52b0e4e3328 (diff)
downloadandroid_packages_apps_Snap-028c39fdda797ea6cd5a507a1164c656f3c73b97.tar.gz
android_packages_apps_Snap-028c39fdda797ea6cd5a507a1164c656f3c73b97.tar.bz2
android_packages_apps_Snap-028c39fdda797ea6cd5a507a1164c656f3c73b97.zip
Fixes UI stuff
bug:7393871 bug:7387596 Change-Id: I833c6f713ab71c4dce896f66e191a2a1a42b3e2f
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/gallery3d/filtershow/FilterShowActivity.java2
-rw-r--r--src/com/android/gallery3d/filtershow/ui/FramedTextButton.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
index 70e5300fc..a873bbe6b 100644
--- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java
+++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java
@@ -82,6 +82,7 @@ import com.android.gallery3d.filtershow.imageshow.ImageZoom;
import com.android.gallery3d.filtershow.presets.ImagePreset;
import com.android.gallery3d.filtershow.provider.SharedImageProvider;
import com.android.gallery3d.filtershow.tools.SaveCopyTask;
+import com.android.gallery3d.filtershow.ui.FramedTextButton;
import com.android.gallery3d.filtershow.ui.ImageButtonTitle;
import com.android.gallery3d.filtershow.ui.ImageCurves;
import com.android.gallery3d.filtershow.ui.Spline;
@@ -152,6 +153,7 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
ImageShow.setDefaultBackgroundColor(getResources().getColor(R.color.background_screen));
ImageSmallFilter.setDefaultBackgroundColor(getResources().getColor(R.color.background_main_toolbar));
// TODO: get those values from XML.
+ FramedTextButton.setTextSize((int) getPixelsFromDip(14));
ImageShow.setTextSize((int) getPixelsFromDip(12));
ImageShow.setTextPadding((int) getPixelsFromDip(10));
ImageShow.setOriginalTextMargin((int) getPixelsFromDip(4));
diff --git a/src/com/android/gallery3d/filtershow/ui/FramedTextButton.java b/src/com/android/gallery3d/filtershow/ui/FramedTextButton.java
index 4abd7c075..17453d070 100644
--- a/src/com/android/gallery3d/filtershow/ui/FramedTextButton.java
+++ b/src/com/android/gallery3d/filtershow/ui/FramedTextButton.java
@@ -90,6 +90,8 @@ public class FramedTextButton extends ImageButton {
canvas.drawRect(mTextPadding, mTextPadding, getWidth() - mTextPadding,
getHeight() - mTextPadding, gPaint);
if (mText != null) {
+ gPaint.reset();
+ gPaint.setARGB(255, 255, 255, 255);
gPaint.setTextSize(mTextSize);
float textWidth = gPaint.measureText(mText);
Rect bounds = new Rect();