diff options
author | Jack Yoo <jyoo@codeaurora.org> | 2016-09-23 13:39:31 -0700 |
---|---|---|
committer | Jack Yoo <jyoo@codeaurora.org> | 2016-10-13 15:56:14 -0700 |
commit | e42adc9e85653ed4b9aa1f71b6343bccc28d155c (patch) | |
tree | 3d1fcfacb47947f6b7bc982473d1f95290b1ef39 /src/com/android/camera/ui/OneUICameraControls.java | |
parent | a5ee184ddb1048795af51102dab7e3b670114729 (diff) | |
download | android_packages_apps_Snap-e42adc9e85653ed4b9aa1f71b6343bccc28d155c.tar.gz android_packages_apps_Snap-e42adc9e85653ed4b9aa1f71b6343bccc28d155c.tar.bz2 android_packages_apps_Snap-e42adc9e85653ed4b9aa1f71b6343bccc28d155c.zip |
SnapdragonCamera: Enhancing makeup UI
Improvising makeup user experience.
Change-Id: I744775711e3cd9bc0a14a47ca82e26eecc68bb6d
CRs-Fixed: 1071798
Diffstat (limited to 'src/com/android/camera/ui/OneUICameraControls.java')
-rw-r--r-- | src/com/android/camera/ui/OneUICameraControls.java | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/com/android/camera/ui/OneUICameraControls.java b/src/com/android/camera/ui/OneUICameraControls.java index b2368faa8..12ce5325b 100644 --- a/src/com/android/camera/ui/OneUICameraControls.java +++ b/src/com/android/camera/ui/OneUICameraControls.java @@ -50,6 +50,9 @@ public class OneUICameraControls extends RotatableLayout { private View mSceneModeSwitcher; private View mFilterModeSwitcher; private View mMakeupSeekBar; + private View mMakeupSeekBarLowText; + private View mMakeupSeekBarHighText; + private View mMakeupSeekBarLayout; private ArrowTextView mRefocusToast; @@ -102,7 +105,10 @@ public class OneUICameraControls extends RotatableLayout { mVideoShutter = findViewById(R.id.video_button); mFrontBackSwitcher = findViewById(R.id.front_back_switcher); mTsMakeupSwitcher = findViewById(R.id.ts_makeup_switcher); - mMakeupSeekBar = findViewById(R.id.ts_makeup_seekbar); + mMakeupSeekBarLowText = findViewById(R.id.makeup_low_text); + mMakeupSeekBarHighText = findViewById(R.id.makeup_high_text); + mMakeupSeekBar = findViewById(R.id.makeup_seekbar); + mMakeupSeekBarLayout = findViewById(R.id.makeup_seekbar_layout); ((SeekBar)mMakeupSeekBar).setMax(100); mFlashButton = findViewById(R.id.flash_button); mMute = findViewById(R.id.mute_button); @@ -133,6 +139,9 @@ public class OneUICameraControls extends RotatableLayout { mHeight = b; setLocation(r - l, b - t); layoutRemaingPhotos(); + if(mMakeupSeekBar != null) { + mMakeupSeekBar.setMinimumWidth(mWidth/2); + } } public boolean isControlRegion(int x, int y) { @@ -203,7 +212,7 @@ public class OneUICameraControls extends RotatableLayout { setLocation(mPreview, false, 0); setLocation(mShutter, false, 2); setLocation(mVideoShutter, false, 3.15f); - setLocationCustomBottom(mMakeupSeekBar, 0, 1); + setLocationCustomBottom(mMakeupSeekBarLayout, 0, 1); layoutToast(mRefocusToast, w, h, rotation); } @@ -315,12 +324,13 @@ public class OneUICameraControls extends RotatableLayout { mOrientation = orientation; View[] views = { mSceneModeSwitcher, mFilterModeSwitcher, mFrontBackSwitcher, - mTsMakeupSwitcher, mFlashButton, mPreview, mMute, mShutter, mVideoShutter + mTsMakeupSwitcher, mFlashButton, mPreview, mMute, mShutter, mVideoShutter, + mMakeupSeekBarLowText, mMakeupSeekBarHighText }; for (View v : views) { if (v != null) { - ((RotateImageView) v).setOrientation(orientation, animation); + ((Rotatable) v).setOrientation(orientation, animation); } } layoutRemaingPhotos(); |