diff options
author | Likai Ding <likaid@codeaurora.org> | 2015-08-21 22:36:03 +0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-03 15:44:39 -0700 |
commit | 8e754707659e9c17c4c485ba17391887ffb0db7c (patch) | |
tree | a1c8ed831f874d062f0963fce7125f924fa61f4b /src/com/android/camera | |
parent | 1ff17d7e28e09b5e352199d6736bca32af36b330 (diff) | |
download | android_packages_apps_Snap-8e754707659e9c17c4c485ba17391887ffb0db7c.tar.gz android_packages_apps_Snap-8e754707659e9c17c4c485ba17391887ffb0db7c.tar.bz2 android_packages_apps_Snap-8e754707659e9c17c4c485ba17391887ffb0db7c.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')
-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 2102d1a78..060209b16 100644 --- a/src/com/android/camera/RefocusActivity.java +++ b/src/com/android/camera/RefocusActivity.java @@ -60,6 +60,8 @@ public class RefocusActivity extends Activity { private int mWidth; private int mHeight; + private View mAllInFocusView; + private DepthMap mDepthMap; private int mCurrentImage = -1; private int mRequestedImage = -1; @@ -92,6 +94,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; } @@ -99,7 +103,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(); @@ -150,6 +155,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> { |