67 lines
2.0 KiB
XML
67 lines
2.0 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:padding="16dp">
|
||
|
|
|
||
|
|
<!-- Camera controls -->
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:spacing="8dp">
|
||
|
|
|
||
|
|
<Spinner
|
||
|
|
android:id="@+id/camera_spinner"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1" />
|
||
|
|
|
||
|
|
<CheckBox
|
||
|
|
android:id="@+id/camera_toggle"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="@string/camera_enable" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<!-- Local video preview -->
|
||
|
|
<TextView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="16dp"
|
||
|
|
android:text="Your Camera Feed:"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
|
||
|
|
<androidx.camera.view.PreviewView
|
||
|
|
android:id="@+id/local_video_view"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="300dp"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:background="@android:color/black" />
|
||
|
|
|
||
|
|
<!-- Remote video feeds -->
|
||
|
|
<TextView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="16dp"
|
||
|
|
android:text="Connected Users:"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
|
||
|
|
<ScrollView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="0dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:layout_marginTop="8dp">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:id="@+id/remote_feeds_container"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical" />
|
||
|
|
|
||
|
|
</ScrollView>
|
||
|
|
|
||
|
|
</LinearLayout>
|