| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 |
xmlns:tools="http://schemas.android.com/tools" |
| 19 |
android:id="@+id/container" |
| 20 |
android:layout_width="match_parent" |
| 21 |
android:layout_height="match_parent" |
| 22 |
android:orientation="vertical" |
| 23 |
android:background="@android:color/darker_gray" |
| 24 |
tools:context="com.example.mysurfaceview.MainActivity"> |
| 25 |
|
| 26 |
<SurfaceView |
| 27 |
android:id="@+id/surface_view" |
| 28 |
android:layout_width="match_parent" |
| 29 |
android:layout_height="600dp" /> |
| 30 |
|
| 31 |
<RelativeLayout |
| 32 |
android:layout_width="match_parent" |
| 33 |
android:layout_height="wrap_content"> |
| 34 |
<Button |
| 35 |
android:text="COLLAPSE SV" |
| 36 |
android:id="@+id/expand_sv" |
| 37 |
android:layout_width="wrap_content" |
| 38 |
android:layout_height="wrap_content"/> |
| 39 |
<Switch |
| 40 |
android:id="@+id/enable_sync_switch" |
| 41 |
android:text="Enable Sync" |
| 42 |
android:checked="true" |
| 43 |
android:layout_alignParentEnd="true" |
| 44 |
android:layout_width="wrap_content" |
| 45 |
android:layout_height="wrap_content"/> |
| 46 |
</RelativeLayout> |
| 47 |
</LinearLayout> |