From 481062a08b0bb73b6f6f307fd45546813e32104a Mon Sep 17 00:00:00 2001 From: Mattia Iavarone Date: Sun, 16 Sep 2018 20:33:19 -0300 Subject: [PATCH] Change demo app appearance --- .../cameraview/demo/Control.java | 2 +- demo/src/main/res/layout/activity_camera.xml | 21 +++++++++++-------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/demo/src/main/java/com/otaliastudios/cameraview/demo/Control.java b/demo/src/main/java/com/otaliastudios/cameraview/demo/Control.java index 0a455af1..5287e105 100644 --- a/demo/src/main/java/com/otaliastudios/cameraview/demo/Control.java +++ b/demo/src/main/java/com/otaliastudios/cameraview/demo/Control.java @@ -63,7 +63,7 @@ public enum Control { int boundary = this == WIDTH ? root.getWidth() : root.getHeight(); if (boundary == 0) boundary = 1000; int step = boundary / 10; - list.add(this == WIDTH ? 300 : 700); + // list.add(this == WIDTH ? 300 : 700); list.add(ViewGroup.LayoutParams.WRAP_CONTENT); list.add(ViewGroup.LayoutParams.MATCH_PARENT); for (int i = step; i < boundary; i += step) { diff --git a/demo/src/main/res/layout/activity_camera.xml b/demo/src/main/res/layout/activity_camera.xml index 8779405e..2801ec93 100644 --- a/demo/src/main/res/layout/activity_camera.xml +++ b/demo/src/main/res/layout/activity_camera.xml @@ -11,10 +11,12 @@ + android:background="?attr/selectableItemBackgroundBorderless" + android:gravity="center" > + android:background="?attr/selectableItemBackgroundBorderless" + android:gravity="center" >