打击位置
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user