diff --git a/demo/src/main/java/com/otaliastudios/cameraview/demo/CameraActivity.java b/demo/src/main/java/com/otaliastudios/cameraview/demo/CameraActivity.java index 6af85d2f..1d499b00 100644 --- a/demo/src/main/java/com/otaliastudios/cameraview/demo/CameraActivity.java +++ b/demo/src/main/java/com/otaliastudios/cameraview/demo/CameraActivity.java @@ -145,22 +145,6 @@ public class CameraActivity extends AppCompatActivity implements View.OnClickLis b.setState(BottomSheetBehavior.STATE_HIDDEN); } }); - - // Animate the watermark just to show we record the animation in video snapshots - ValueAnimator animator = ValueAnimator.ofFloat(1F, 0.8F); - animator.setDuration(300); - animator.setRepeatCount(ValueAnimator.INFINITE); - animator.setRepeatMode(ValueAnimator.REVERSE); - animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { - @Override - public void onAnimationUpdate(ValueAnimator animation) { - float scale = (float) animation.getAnimatedValue(); - watermark.setScaleX(scale); - watermark.setScaleY(scale); - watermark.setRotation(watermark.getRotation() + 2); - } - }); - animator.start(); } private void message(@NonNull String content, boolean important) { diff --git a/demo/src/main/res/layout/activity_camera.xml b/demo/src/main/res/layout/activity_camera.xml index f36eac91..fd816362 100644 --- a/demo/src/main/res/layout/activity_camera.xml +++ b/demo/src/main/res/layout/activity_camera.xml @@ -32,15 +32,27 @@ app:cameraAutoFocusMarker="@string/cameraview_default_autofocus_marker"> - + app:layout_drawOnPictureSnapshot="true"> + + + +