66 lines
2.1 KiB
XML
66 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:background="#000">
|
|
|
|
|
|
<SurfaceView
|
|
android:id="@+id/surfaceView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<!--<com.cs.camerademo.view.AutoFitTextureView-->
|
|
<!--android:id="@+id/textureView"-->
|
|
<!--android:layout_width="match_parent"-->
|
|
<!--android:layout_height="wrap_content" />-->
|
|
|
|
<ImageView
|
|
android:scaleType="center"
|
|
android:src="@mipmap/camear_mask"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
|
|
<ImageView
|
|
android:layout_margin="16dp"
|
|
android:layout_above="@id/rlBottom"
|
|
android:src="@mipmap/camera_example"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<RelativeLayout
|
|
android:background="@color/black"
|
|
android:id="@+id/rlBottom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="90dp"
|
|
android:layout_alignParentBottom="true"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
<TextView
|
|
android:id="@+id/cancelBtn"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="取消"
|
|
android:textColor="#ffffffff"
|
|
android:textSize="16sp"
|
|
/>
|
|
|
|
<ImageButton
|
|
android:background="@null"
|
|
android:id="@+id/btnTakePic"
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:layout_centerInParent="true"
|
|
android:src="@mipmap/camera_tackpic"
|
|
android:visibility="visible" />
|
|
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout> |