UNPKG

@tuofeng/react-native-image-picker

Version:

Image Picker

74 lines (67 loc) 2.5 kB
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <SurfaceView android:id="@+id/previewSV" android:layout_width="match_parent" android:layout_height="match_parent" > </SurfaceView> <ImageView android:id="@+id/iv_bg" android:scaleType="centerInside" android:layout_weight="1" android:layout_centerInParent="true" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingTop="18dp" android:paddingBottom="70dp" /> <ImageView android:id="@+id/iv_show" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#000000" android:layout_centerInParent="true" android:layout_weight="1" android:scaleType="centerInside" android:visibility="gone" /> <RelativeLayout android:id="@+id/button" android:layout_width="match_parent" android:layout_height="48dp" android:paddingLeft="30dp" android:paddingRight="30dp" android:layout_marginBottom="10dp" android:layout_alignParentBottom="true" android:gravity="center_vertical" android:orientation="horizontal"> <TextView android:id="@+id/tv_cancel" android:padding="10dp" android:textColor="#ffffff" android:text="取消" android:background="@drawable/shape_content" android:textSize="8pt" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <ImageView android:id="@+id/iv_take" android:src="@drawable/takephone" android:layout_width="wrap_content" android:layout_centerInParent="true" android:layout_height="wrap_content" /> <TextView android:id="@+id/tv_sure" android:padding="10dp" android:text="使用" android:textColor="#ffffff" android:background="@drawable/shape_content" android:textSize="8pt" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" /> </RelativeLayout> </RelativeLayout>