|
5 | 5 | android:layout_width="match_parent"
|
6 | 6 | android:layout_height="match_parent">
|
7 | 7 |
|
| 8 | + <com.wonderkiln.camerakit.CameraView |
| 9 | + android:id="@+id/cameraView" |
| 10 | + android:layout_width="300dp" |
| 11 | + android:layout_height="300dp" |
| 12 | + android:layout_gravity="center|top" /> |
| 13 | + |
| 14 | + |
| 15 | + <LinearLayout |
| 16 | + android:layout_width="match_parent" |
| 17 | + android:layout_height="80dp" |
| 18 | + android:layout_gravity="center|top" |
| 19 | + android:layout_marginTop="300dp" |
| 20 | + android:gravity="center" |
| 21 | + android:orientation="horizontal"> |
| 22 | + |
| 23 | + <ImageView |
| 24 | + android:id="@+id/imageViewResult" |
| 25 | + android:layout_width="75dp" |
| 26 | + android:layout_height="75dp" |
| 27 | + android:padding="2dp" /> |
| 28 | + |
| 29 | + <TextView |
| 30 | + android:id="@+id/textViewResult" |
| 31 | + android:layout_width="match_parent" |
| 32 | + android:layout_height="80dp" |
| 33 | + android:fadeScrollbars="false" |
| 34 | + android:maxLines="15" |
| 35 | + android:scrollbars="vertical" |
| 36 | + android:gravity="center" |
| 37 | + android:textColor="@android:color/black" /> |
| 38 | + |
| 39 | + </LinearLayout> |
| 40 | + |
| 41 | + |
| 42 | + <Button |
| 43 | + android:id="@+id/btnToggleCamera" |
| 44 | + android:layout_width="match_parent" |
| 45 | + android:layout_height="48dp" |
| 46 | + android:layout_gravity="bottom|center" |
| 47 | + android:layout_marginBottom="50dp" |
| 48 | + android:text="@string/toggle_camera" |
| 49 | + android:textAllCaps="false" |
| 50 | + android:textColor="@android:color/black" /> |
| 51 | + |
| 52 | + <Button |
| 53 | + android:id="@+id/btnDetectObject" |
| 54 | + android:layout_width="match_parent" |
| 55 | + android:layout_height="48dp" |
| 56 | + android:layout_gravity="bottom|center" |
| 57 | + android:text="@string/detect_object" |
| 58 | + android:textAllCaps="false" |
| 59 | + android:textColor="@android:color/black" |
| 60 | + android:visibility="gone" /> |
| 61 | + |
8 | 62 | <Button
|
9 | 63 | android:id="@+id/getButton"
|
10 | 64 | android:layout_width="wrap_content"
|
|
0 commit comments