@tuofeng/react-native-image-picker
Version:
Image Picker
39 lines (36 loc) • 1.51 kB
text/xml
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:layout_height="match_parent">
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
fresco:actualImageScaleType="centerCrop"
fresco:placeholderImageScaleType="fitCenter"
fresco:fadeDuration="200"
fresco:roundAsCircle="false"
fresco:failureImage="@drawable/default_image"
fresco:placeholderImage="@drawable/default_image"
/>
<!--图片选中 灰色背景-->
<View
android:id="@+id/mask"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/mark_bg"
android:visibility="visible"/>
<!--数字序号显示-->
<TextView
android:id="@+id/checkmark"
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_gravity="top|right"
android:layout_marginRight="5.5dp"
android:layout_marginTop="5.5dp"
android:gravity="center"
android:text="1"
android:textColor="#ffffff"
android:textSize="13sp"/>
</FrameLayout>