|
|
@ -13,10 +13,12 @@ |
|
|
|
android:focusableInTouchMode="true" |
|
|
|
android:focusableInTouchMode="true" |
|
|
|
android:orientation="vertical"> |
|
|
|
android:orientation="vertical"> |
|
|
|
|
|
|
|
|
|
|
|
<com.wonderkiln.camerakit.CameraView |
|
|
|
<com.wonderkiln.camerakit.CameraView xmlns:app="http://schemas.android.com/apk/res-auto" |
|
|
|
android:id="@+id/camera" |
|
|
|
android:id="@+id/camera" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="300dp" |
|
|
|
android:layout_height="400dp" /> |
|
|
|
android:layout_height="400dp" |
|
|
|
|
|
|
|
android:layout_gravity="center_horizontal" |
|
|
|
|
|
|
|
app:ckFacing="back" /> |
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
<LinearLayout |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
@ -78,6 +80,104 @@ |
|
|
|
android:layout_marginTop="10dp" |
|
|
|
android:layout_marginTop="10dp" |
|
|
|
android:background="#cccccc" /> |
|
|
|
android:background="#cccccc" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<FrameLayout |
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginTop="16dp"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<View |
|
|
|
|
|
|
|
android:layout_width="2.5dp" |
|
|
|
|
|
|
|
android:layout_height="match_parent" |
|
|
|
|
|
|
|
android:background="@color/colorPrimary" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginLeft="10dp" |
|
|
|
|
|
|
|
android:orientation="vertical"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginLeft="3dp" |
|
|
|
|
|
|
|
android:text="PICTURE MODE" |
|
|
|
|
|
|
|
android:textColor="@android:color/black" |
|
|
|
|
|
|
|
android:textSize="14dp" |
|
|
|
|
|
|
|
android:textStyle="bold" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginTop="4dp" |
|
|
|
|
|
|
|
android:orientation="horizontal"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatCheckBox |
|
|
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:checked="true" |
|
|
|
|
|
|
|
android:text="Quality" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatCheckBox |
|
|
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginLeft="20dp" |
|
|
|
|
|
|
|
android:text="Speed" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</FrameLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<FrameLayout |
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginTop="16dp"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<View |
|
|
|
|
|
|
|
android:layout_width="2.5dp" |
|
|
|
|
|
|
|
android:layout_height="match_parent" |
|
|
|
|
|
|
|
android:background="@color/colorPrimary" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginLeft="10dp" |
|
|
|
|
|
|
|
android:orientation="vertical"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginLeft="3dp" |
|
|
|
|
|
|
|
android:text="OUTPUT" |
|
|
|
|
|
|
|
android:textColor="@android:color/black" |
|
|
|
|
|
|
|
android:textSize="14dp" |
|
|
|
|
|
|
|
android:textStyle="bold" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginTop="4dp" |
|
|
|
|
|
|
|
android:orientation="horizontal"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatCheckBox |
|
|
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:checked="true" |
|
|
|
|
|
|
|
android:text="Crop to visible" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.AppCompatCheckBox |
|
|
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginLeft="20dp" |
|
|
|
|
|
|
|
android:text="Full size" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</FrameLayout> |
|
|
|
|
|
|
|
|
|
|
|
<FrameLayout |
|
|
|
<FrameLayout |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
@ -113,14 +213,16 @@ |
|
|
|
android:textSize="11dp" /> |
|
|
|
android:textSize="11dp" /> |
|
|
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
<EditText |
|
|
|
|
|
|
|
android:id="@+id/width" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:hint="pixels" /> |
|
|
|
android:hint="pixels" |
|
|
|
|
|
|
|
android:inputType="number" /> |
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
<LinearLayout |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_marginTop="6dp" |
|
|
|
android:layout_marginTop="3dp" |
|
|
|
android:gravity="center" |
|
|
|
android:gravity="center" |
|
|
|
android:orientation="horizontal"> |
|
|
|
android:orientation="horizontal"> |
|
|
|
|
|
|
|
|
|
|
@ -178,14 +280,16 @@ |
|
|
|
android:textSize="11dp" /> |
|
|
|
android:textSize="11dp" /> |
|
|
|
|
|
|
|
|
|
|
|
<EditText |
|
|
|
<EditText |
|
|
|
|
|
|
|
android:id="@+id/height" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:hint="pixels" /> |
|
|
|
android:hint="pixels" |
|
|
|
|
|
|
|
android:inputType="number" /> |
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
<LinearLayout |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_marginTop="6dp" |
|
|
|
android:layout_marginTop="3dp" |
|
|
|
android:gravity="center" |
|
|
|
android:gravity="center" |
|
|
|
android:orientation="horizontal"> |
|
|
|
android:orientation="horizontal"> |
|
|
|
|
|
|
|
|
|
|
@ -208,15 +312,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
</FrameLayout> |
|
|
|
</FrameLayout> |
|
|
|
|
|
|
|
|
|
|
|
<Button |
|
|
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_gravity="center_horizontal" |
|
|
|
|
|
|
|
android:layout_marginTop="16dp" |
|
|
|
|
|
|
|
android:backgroundTint="@color/colorPrimary" |
|
|
|
|
|
|
|
android:text="Update parameters" |
|
|
|
|
|
|
|
android:textColor="@android:color/white" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
</LinearLayout> |
|
|
|