diff options
| author | yongga <yongga@codeaurora.org> | 2016-01-13 19:27:57 +0800 |
|---|---|---|
| committer | yongga <yongga@codeaurora.org> | 2016-01-13 19:27:57 +0800 |
| commit | 82566be37a287fc5572918eb81b7816411c5a744 (patch) | |
| tree | 0a55bf58ba2bdae30099ddf6ef138239a8004b67 /src/com/android | |
| parent | 24af2c506c4b7ad200669cc951c43f664228eac9 (diff) | |
| download | android_packages_apps_Gallery2-82566be37a287fc5572918eb81b7816411c5a744.tar.gz android_packages_apps_Gallery2-82566be37a287fc5572918eb81b7816411c5a744.tar.bz2 android_packages_apps_Gallery2-82566be37a287fc5572918eb81b7816411c5a744.zip | |
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
Diffstat (limited to 'src/com/android')
| -rw-r--r-- | src/com/android/gallery3d/filtershow/info/HistogramView.java | 3 | ||||
| -rw-r--r-- | src/com/android/gallery3d/filtershow/info/InfoPanel.java | 2 |
2 files changed, 4 insertions, 1 deletions
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); |
