UNPKG

@nativeframe/react-native-native-frame

Version:
55 lines (44 loc) 1.61 kB
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <FrameLayout android:id="@+id/preview" android:layout_width="350dp" android:layout_height="250dp" android:layout_gravity="center_horizontal" android:layout_marginTop="12dp"> <androidx.camera.view.PreviewView android:id="@+id/camera_preview" android:layout_width="350dp" android:layout_height="250dp" android:layout_gravity="center_horizontal" android:layout_marginTop="12dp" tools:background="@android:drawable/presence_offline" /> </FrameLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginTop="12dp" android:gravity="center_horizontal" android:orientation="horizontal"> <ImageButton android:id="@+id/goLive" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/broadcast" /> <ImageButton android:id="@+id/toggleCam" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/cam" /> <ImageButton android:id="@+id/toggleMic" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/mic" /> </LinearLayout> </LinearLayout>