diff options
author | Likai Ding <likaid@codeaurora.org> | 2015-08-21 22:36:03 +0800 |
---|---|---|
committer | Likai Ding <likaid@codeaurora.org> | 2015-08-21 22:36:03 +0800 |
commit | 619f8731438891af6ad9617fef568e1466aa0dd6 (patch) | |
tree | 5c398fc125106cd6275bb07b241fe87d06109ebd /src/com/android/camera/RefocusActivity.java | |
parent | 17f3dcbb3faf9d9378899e5f4b0b0042834bf26a (diff) | |
download | android_packages_apps_Snap-619f8731438891af6ad9617fef568e1466aa0dd6.tar.gz android_packages_apps_Snap-619f8731438891af6ad9617fef568e1466aa0dd6.tar.bz2 android_packages_apps_Snap-619f8731438891af6ad9617fef568e1466aa0dd6.zip |
SnapdragonCamera: add button border
Add border for "All in Focus" button. Also some tweaks to meet UI
spec.
Change-Id: I56c458a420e503321cc9a3255a7dd4ae0a6d4637
Diffstat (limited to 'src/com/android/camera/RefocusActivity.java')
-rw-r--r-- | src/com/android/camera/RefocusActivity.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/camera/RefocusActivity.java b/src/com/android/camera/RefocusActivity.java index 8c18db977..7291f1fe0 100644 --- a/src/com/android/camera/RefocusActivity.java +++ b/src/com/android/camera/RefocusActivity.java @@ -71,6 +71,8 @@ public class RefocusActivity extends Activity { private int mHeight; private Indicator mIndicator; + private View mAllInFocusView; + private DepthMap mDepthMap; private int mCurrentImage = -1; private int mRequestedImage = -1; @@ -107,6 +109,8 @@ public class RefocusActivity extends Activity { if (mDepthMap != null) { int depth = mDepthMap.getDepth(x / (float) w, y / (float) h); setCurrentImage(depth); + mAllInFocusView.setBackground(getDrawable( + R.drawable.refocus_button_disable)); } break; } @@ -114,7 +118,8 @@ public class RefocusActivity extends Activity { } }); - findViewById(R.id.refocus_all).setOnClickListener(new View.OnClickListener() { + mAllInFocusView = findViewById(R.id.refocus_all); + mAllInFocusView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(final View v) { allInFocus(); @@ -165,6 +170,7 @@ public class RefocusActivity extends Activity { private void allInFocus() { setCurrentImage(NAMES.length - 1); + mAllInFocusView.setBackground(getDrawable(R.drawable.refocus_button_enable)); } private class SaveImageTask extends AsyncTask<String, Void, Void> { |