Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
camerapicker.xml 1.59 KiB
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/camera_preview"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|center_horizontal"
        android:orientation="horizontal">

        <com.google.android.material.floatingactionbutton.FloatingActionButton
            android:id="@+id/button_picture"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@string/action_call_decline"
            android:padding="16dp"
            app:backgroundTint="@color/green_500"
            app:rippleColor="@android:color/white"
            app:srcCompat="@drawable/baseline_photo_camera_24"
            app:useCompatPadding="true" />

        <com.google.android.material.floatingactionbutton.FloatingActionButton
            android:id="@+id/button_video"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@string/action_call_decline"
            android:padding="16dp"
            android:visibility="gone"
            app:backgroundTint="@color/green_500"
            app:rippleColor="@android:color/white"
            app:srcCompat="@drawable/baseline_videocam_24"
            app:useCompatPadding="true" />

    </LinearLayout>

</FrameLayout>