Ranex

Untitled

Sep 12th, 2021
1,106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.74 KB | None | 0 0
  1. <FrameLayout
  2.        android:id="@+id/frame"
  3.        android:layout_width="match_parent"
  4.        android:layout_height="0dp"
  5.        app:scaleType="fitCenter"
  6.        android:adjustViewBounds="true"
  7.  
  8.        <androidx.camera.view.PreviewView
  9.            android:id="@+id/preview"
  10.            android:layout_width="match_parent"
  11.            android:layout_height="match_parent"
  12.            android:adjustViewBounds="true"/>
  13.  
  14.         <ImageView
  15.            android:id="@+id/image_mask"
  16.            android:layout_width="match_parent"
  17.            android:layout_height="wrap_content"
  18.            android:adjustViewBounds="true"
  19.            android:scaleType="centerCrop"
  20.            app:srcCompat="@drawable/mask" />
  21.  
  22.     </FrameLayout>
Advertisement
Add Comment
Please, Sign In to add comment