99 lines
3.9 KiB
XML
99 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<SurfaceView
|
|
android:id="@+id/surfaceView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
<com.github.chrisbanes.photoview.PhotoView
|
|
android:id="@+id/imgPreview"
|
|
android:background="@android:color/black"
|
|
android:visibility="invisible"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"/>
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:id="@+id/imgStartPlay"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@mipmap/play_video"/>
|
|
<RelativeLayout
|
|
android:layout_gravity="top"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<ImageView
|
|
android:id="@+id/imgBack"
|
|
android:layout_width="@dimen/gallery_ic_width"
|
|
android:layout_height="@dimen/gallery_ic_width"
|
|
android:src="@mipmap/ic_back"
|
|
android:scaleType="fitCenter"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_centerVertical="true"/>
|
|
<ImageView
|
|
android:id="@+id/imgChangeCamera"
|
|
android:layout_width="@dimen/change_camera"
|
|
android:layout_height="@dimen/change_camera"
|
|
android:src="@mipmap/change_camera"
|
|
android:scaleType="fitCenter"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"/>
|
|
</RelativeLayout>
|
|
<TextView
|
|
android:textColor="@android:color/white"
|
|
android:gravity="center"
|
|
android:layout_gravity="center"
|
|
android:id="@+id/tvTips"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="150dp"
|
|
android:layout_marginRight="150dp"
|
|
android:text="@string/tips_photo_or_video"/>
|
|
<RelativeLayout
|
|
android:layout_gravity="right"
|
|
android:orientation="vertical"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:minWidth="150dp">
|
|
<ImageView
|
|
android:id="@+id/imgCaptureBackground"
|
|
android:layout_width="105dp"
|
|
android:layout_height="105dp"
|
|
android:src="@mipmap/capture"
|
|
android:layout_centerInParent="true"/>
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
android:visibility="gone"
|
|
android:layout_width="140dp"
|
|
android:layout_height="110dp"
|
|
android:max="100"
|
|
android:progress="0"
|
|
android:secondaryProgress="100"
|
|
android:progressDrawable="@drawable/circular_progress_bar"
|
|
android:layout_centerInParent="true"
|
|
style="?android:attr/progressBarStyleHorizontal"/>
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
|
android:layout_gravity="top"
|
|
android:id="@+id/rlBottom"
|
|
android:visibility="gone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<ImageView
|
|
android:id="@+id/imgCancel"
|
|
android:background="@mipmap/ic_back"
|
|
android:layout_width="@dimen/gallery_ic_width"
|
|
android:layout_height="@dimen/gallery_ic_width"
|
|
android:scaleType="centerInside"/>
|
|
<ImageView
|
|
android:id="@+id/imgAccept"
|
|
android:background="@mipmap/gallery_community_collection_icon"
|
|
android:layout_width="@dimen/gallery_ic_width"
|
|
android:layout_height="@dimen/gallery_ic_width"
|
|
android:scaleType="centerInside"
|
|
android:layout_alignParentRight="true"/>
|
|
</RelativeLayout>
|
|
</FrameLayout>
|