82 lines
2.8 KiB
XML
82 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:background="@color/bg_gray"
|
|
tools:context=".liveVideo.StrikePositionActivity">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/topBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:gravity="center_vertical"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/ivBack"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:src="@drawable/back" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="@string/strike_position"
|
|
android:textColor="@color/black"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:paddingHorizontal="20dp"
|
|
android:text="@string/click_model_select_strike_pos"
|
|
android:textColor="@color/gray"
|
|
android:textSize="14sp" />
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_margin="16dp">
|
|
|
|
<!-- 人体背景图:点击此图选择打击区域 -->
|
|
<ImageView
|
|
android:id="@+id/ivHumanBody"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/human_body" />
|
|
|
|
<!-- 打击标记图标(跟随选中的区域移动,坐标相对于父容器中心) -->
|
|
<ImageView
|
|
android:id="@+id/ivStrikeMarker"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:layout_gravity="center"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/dajitubiao" />
|
|
|
|
</FrameLayout>
|
|
|
|
<android.widget.Button
|
|
android:id="@+id/btnSubmit"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:layout_margin="16dp"
|
|
android:background="@drawable/rounded_blue_bg"
|
|
android:text="@string/submit"
|
|
android:textColor="@color/white"
|
|
android:textSize="16sp" />
|
|
|
|
</LinearLayout>
|