react-native-customized-image-picker
Version:
Select single or multiple images, with croping option
47 lines (41 loc) • 1.71 kB
text/xml
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/image_drawee"
xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:scaleType="centerCrop"
fresco:placeholderImage="@drawable/default_image"
fresco:placeholderImageScaleType="fitCenter"
fresco:roundedCornerRadius="2dp"
fresco:viewAspectRatio="1.00"
/>
<View
android:id="@+id/image_mask"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#88000000"
android:visibility="gone"/>
<ImageView
android:id="@+id/image_checked"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|end"
android:layout_marginRight="5.5dp"
android:layout_marginTop="5.5dp"
android:src="@drawable/image_unselected"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="2dp"
android:text="@string/tip_take_photo"
android:id="@+id/image_name"
android:textColor="@color/white"
android:layout_gravity="bottom|center_horizontal"
/>
</FrameLayout>