Advertisement
RemieHamillton

Untitled

Feb 10th, 2022
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 1.20 KB | None | 0 0
  1. // fragment Image
  2. <androidx.coordinatorlayout.widget.CoordinatorLayout
  3.         android:layout_width="match_parent"
  4.         android:layout_height="match_parent"
  5.         android:fitsSystemWindows="false">
  6.  
  7.         <androidx.viewpager2.widget.ViewPager2
  8.             android:id="@+id/view_pager"
  9.             android:layout_width="match_parent"
  10.             android:layout_height="match_parent"
  11.             android:fitsSystemWindows="false"/>
  12.  
  13. </androidx.coordinatorlayout.widget.CoordinatorLayout>
  14.  
  15.  
  16. // Item Image
  17. <androidx.constraintlayout.widget.ConstraintLayout
  18.         android:id="@+id/item_layout"
  19.         android:layout_width="match_parent"
  20.         android:layout_height="match_parent"
  21.         android:background="@color/colorTransparent"
  22.         android:clickable="true"
  23.         android:focusable="true"
  24.         android:fitsSystemWindows="false">
  25.  
  26.         <ImageView
  27.             android:id="@+id/image_view"
  28.             android:layout_width="match_parent"
  29.             android:layout_height="match_parent"
  30.             android:adjustViewBounds="true"
  31.             android:fitsSystemWindows="false"
  32.             android:scaleType="fitCenter"/>
  33.  
  34. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement