discord-jadx/app/src/main/res/layout/fragment_camera.xml

12 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" style="@style/UiKit_ViewGroup_Page">
<RelativeLayout android:id="@+id/camera_container" android:visibility="gone" android:layout_width="match_parent" android:layout_height="match_parent" style="@style/UiKit_ViewGroup_RelativeLayout">
<com.otaliastudios.cameraview.CameraView android:id="@+id/camera_view" android:layout_width="match_parent" android:layout_height="match_parent" app:cameraAudio="0" app:cameraEngine="1" app:cameraFlash="2" app:cameraGestureTap="1" app:cameraRequestPermissions="false"/>
<ImageButton android:id="@+id/camera_flash_btn" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:contentDescription="@string/flash_off" style="@style/FlexInput_Input_Button_Camera_Flash"/>
<ImageButton android:id="@+id/camera_facing_btn" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:contentDescription="@string/camera_switch" style="@style/FlexInput_Input_Button_Camera_Facing"/>
<ImageView android:id="@+id/take_photo_btn" android:layout_width="56dp" android:layout_height="56dp" android:contentDescription="@string/take_a_photo" style="@style/FlexInput_Input_Button_Camera_Capture"/>
<ImageButton android:id="@+id/launch_camera_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:contentDescription="@string/camera" style="@style/FlexInput_Input_Button_Camera_Launcher"/>
</RelativeLayout>
<ViewStub android:id="@+id/permissions_view_stub" android:layout="@layout/view_permissions_required" android:layout_marginTop="32dp" style="@style/UiKit_ViewGroup"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>