pradyut

Android Crop Image Layout

Jun 19th, 2021
1,422
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent">
  5.  
  6.     <ImageView
  7.        android:layout_width="250dp"
  8.        android:layout_height="325dp"
  9.        android:id="@+id/imageview"
  10.        android:layout_centerHorizontal="true"
  11.        />
  12.  
  13.     <Button
  14.        android:text="Click Here For PICK image from Gallery TO CROP"
  15.        android:layout_width="fill_parent"
  16.        android:layout_height="wrap_content"
  17.        android:layout_below="@+id/imageview"
  18.        android:layout_centerHorizontal="true"
  19.        android:layout_marginTop="7dp"
  20.        android:id="@+id/button1" />
  21.  
  22.     <Button
  23.        android:text="Click Here For CLICK image from Camera TO CROP"
  24.        android:layout_width="fill_parent"
  25.        android:layout_height="wrap_content"
  26.        android:layout_below="@+id/button1"
  27.        android:layout_alignRight="@+id/button1"
  28.        android:layout_alignEnd="@+id/button1"
  29.        android:layout_marginTop="7dp"
  30.        android:id="@+id/button2" />
  31.  
  32. </RelativeLayout>
RAW Paste Data