打击位置

This commit is contained in:
2026-06-02 10:09:11 +08:00
parent c4fd35bfe4
commit a1ff4d100a
4 changed files with 232 additions and 56 deletions

View File

@@ -9,7 +9,6 @@
android:background="@color/bg_gray"
tools:context=".liveVideo.StrikePositionActivity">
<!-- 标题栏 -->
<LinearLayout
android:id="@+id/topBar"
android:layout_width="match_parent"
@@ -34,7 +33,6 @@
android:textStyle="bold" />
</LinearLayout>
<!-- 提示文字 -->
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -44,34 +42,32 @@
android:textColor="@color/gray"
android:textSize="14sp" />
<!-- 人体模型区域 -->
<RelativeLayout
android:id="@+id/bodyLayout"
android:layout_width="wrap_content"
<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="439dp"
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_centerHorizontal="true"
android:layout_gravity="center"
android:scaleType="fitCenter"
android:src="@drawable/dajitubiao" />
</RelativeLayout>
</FrameLayout>
<!-- 提交按钮 -->
<android.widget.Button
android:id="@+id/btnSubmit"
android:layout_width="match_parent"
@@ -82,4 +78,4 @@
android:textColor="@color/white"
android:textSize="16sp" />
</LinearLayout>
</LinearLayout>

View File

@@ -204,6 +204,8 @@
<string name="strike_position">打击位置</string>
<string name="click_model_select_strike_pos">请点击下方人体模型,选择大致打击位置</string>
<string name="confirm_modify_strike_pos">确定修改为该打击位置?</string>
<string name="submit_success">提交成功</string>
<string name="submit_failed">提交失败</string>
<string name="container_1">容器1</string>
<string name="container_2">容器2</string>
<string name="container_3">容器3</string>

View File

@@ -387,6 +387,8 @@
<string name="strike_position">Strike Position</string>
<string name="click_model_select_strike_pos">Please click the human model below to select the approximate strike position</string>
<string name="confirm_modify_strike_pos">Confirm to modify to this strike position?</string>
<string name="submit_success">Submitted successfully</string>
<string name="submit_failed">Submission failed</string>
<string name="container_1">Container 1</string>
<string name="container_2">Container 2</string>
<string name="container_3">Container 3</string>