From 82566be37a287fc5572918eb81b7816411c5a744 Mon Sep 17 00:00:00 2001 From: yongga Date: Wed, 13 Jan 2016 19:27:57 +0800 Subject: Gallary2: Change the background color of HistogramView. The layout's background color is as same as the backgroud color of HistogramView. Change the background color of HistogramView. Change-Id: Id0411bf41c100b22b5b0a3a152efc36282bdbdbd CRs-Fixed: 959504 --- src/com/android/gallery3d/filtershow/info/HistogramView.java | 3 ++- src/com/android/gallery3d/filtershow/info/InfoPanel.java | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/com/android') diff --git a/src/com/android/gallery3d/filtershow/info/HistogramView.java b/src/com/android/gallery3d/filtershow/info/HistogramView.java index 99cf235bf..7b7edb4dd 100644 --- a/src/com/android/gallery3d/filtershow/info/HistogramView.java +++ b/src/com/android/gallery3d/filtershow/info/HistogramView.java @@ -93,12 +93,13 @@ public class HistogramView extends View { mPaint.reset(); mPaint.setAntiAlias(true); - mPaint.setARGB(100, 255, 255, 255); + mPaint.setARGB(100, 0, 0, 0); mPaint.setStrokeWidth((int) Math.ceil(wl)); // Draw grid mPaint.setStyle(Paint.Style.STROKE); canvas.drawRect(dx, 0, dx + w, h, mPaint); + mPaint.setARGB(100, 200, 200, 200); canvas.drawLine(dx + w / 3, 0, dx + w / 3, h, mPaint); canvas.drawLine(dx + 2 * w / 3, 0, dx + 2 * w / 3, h, mPaint); diff --git a/src/com/android/gallery3d/filtershow/info/InfoPanel.java b/src/com/android/gallery3d/filtershow/info/InfoPanel.java index 3a6657849..151624c80 100644 --- a/src/com/android/gallery3d/filtershow/info/InfoPanel.java +++ b/src/com/android/gallery3d/filtershow/info/InfoPanel.java @@ -17,6 +17,7 @@ package com.android.gallery3d.filtershow.info; import android.graphics.Bitmap; +import android.graphics.Color; import android.graphics.Rect; import android.net.Uri; import android.os.Bundle; @@ -80,6 +81,7 @@ public class InfoPanel extends DialogFragment { HistogramView histogramView = (HistogramView) mMainView.findViewById(R.id.histogramView); histogramView.setBitmap(bitmap); + histogramView.setBackgroundColor(Color.DKGRAY); Uri uri = MasterImage.getImage().getUri(); String path = ImageLoader.getLocalPathFromUri(getActivity(), uri); -- cgit v1.2.3