添加注释
This commit is contained in:
@@ -1,71 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/transparent"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:padding="8dp"> <!-- 深蓝色背景 -->
|
||||
|
||||
<!-- 顶部文字:数值+单位 -->
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/valueText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="20sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/unitText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="10sp" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<!-- 圆柱容器 -->
|
||||
<FrameLayout
|
||||
android:id="@+id/cylinderContainer"
|
||||
android:layout_width="87dp"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<!-- 圆柱绘制View -->
|
||||
<com.sw.dualscreen.view.CylinderDrawView
|
||||
android:id="@+id/cylinderDrawView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="top|center_horizontal" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/topImage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_gravity="top|center_horizontal"
|
||||
android:background="@drawable/img_red_column" />
|
||||
<!-- 底部火焰图片(覆盖圆柱底部) -->
|
||||
<ImageView
|
||||
android:id="@+id/bottomImage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:src="@drawable/ic_heat" /> <!-- 替换为你的火焰图片资源 -->
|
||||
</FrameLayout>
|
||||
|
||||
<!-- 底部文字:热量 -->
|
||||
<TextView
|
||||
android:id="@+id/bottomText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="热量"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user