Created
April 6, 2018 17:40
-
-
Save aagarwal1012/b8d2e08a36c50f69af7c11b17065ae2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/activity_main" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingBottom="16dp" | |
android:paddingLeft="16dp" | |
android:paddingRight="16dp" | |
android:paddingTop="16dp" | |
tools:context=".MainActivity"> | |
<com.wonderkiln.camerakit.CameraView | |
android:id="@+id/cameraView" | |
android:layout_width="300dp" | |
android:layout_height="300dp" | |
android:layout_gravity="center|top" /> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="80dp" | |
android:layout_gravity="center|top" | |
android:layout_marginTop="300dp" | |
android:gravity="center" | |
android:orientation="horizontal"> | |
<ImageView | |
android:id="@+id/imageViewResult" | |
android:layout_width="75dp" | |
android:layout_height="75dp" | |
android:padding="2dp" /> | |
<TextView | |
android:id="@+id/textViewResult" | |
android:layout_width="match_parent" | |
android:layout_height="80dp" | |
android:fadeScrollbars="false" | |
android:maxLines="15" | |
android:scrollbars="vertical" | |
android:gravity="center" | |
android:textColor="@android:color/black" /> | |
</LinearLayout> | |
<Button | |
android:id="@+id/btnToggleCamera" | |
android:layout_width="match_parent" | |
android:layout_height="48dp" | |
android:layout_gravity="bottom|center" | |
android:layout_marginBottom="50dp" | |
android:text="@string/toggle_camera" | |
android:textAllCaps="false" | |
android:textColor="@android:color/black" /> | |
<Button | |
android:id="@+id/btnDetectObject" | |
android:layout_width="match_parent" | |
android:layout_height="48dp" | |
android:layout_gravity="bottom|center" | |
android:text="@string/detect_object" | |
android:textAllCaps="false" | |
android:textColor="@android:color/black" | |
android:visibility="gone" /> | |
</FrameLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment