From 70394b344e4c9aceb9e979eb4192bdbb28186deb Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期一, 23 三月 2026 16:07:24 +0800 Subject: [PATCH] 2026年03月23日16:07:23 --- app/src/main/res/layout/item_plant_bms_details.xml | 267 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 267 insertions(+), 0 deletions(-) diff --git a/app/src/main/res/layout/item_plant_bms_details.xml b/app/src/main/res/layout/item_plant_bms_details.xml new file mode 100644 index 0000000..ea70459 --- /dev/null +++ b/app/src/main/res/layout/item_plant_bms_details.xml @@ -0,0 +1,267 @@ +<?xml version="1.0" encoding="utf-8"?> + +<com.hdl.photovoltaic.widget.SwipeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/bms_item_parent_swipeLayout" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <LinearLayout + android:id="@+id/bms_swipe_layout_il" + android:layout_width="66dp" + android:layout_height="124.5dp" + android:layout_marginTop="@dimen/dp_0" + android:orientation="vertical"> + + <View + android:layout_width="match_parent" + android:layout_height="@dimen/dp_10" /> + + <LinearLayout + android:id="@+id/bms_move_ll" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:gravity="center_vertical" + android:orientation="vertical"> + + <ImageView + android:id="@+id/bms_move_home_iv" + android:layout_width="@dimen/dp_36" + android:layout_height="@dimen/dp_36" + android:src="@drawable/move_house" /> + + </LinearLayout> + + <LinearLayout + android:id="@+id/bms_del_ll" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:gravity="center_vertical" + android:orientation="vertical"> + + + <ImageView + android:id="@+id/bms_del_home_iv" + android:layout_width="@dimen/dp_36" + android:layout_height="@dimen/dp_36" + android:src="@drawable/del_home" /> + + + </LinearLayout> + + + </LinearLayout> + + <RelativeLayout + android:id="@+id/bms_item_parent_rl" + android:layout_width="match_parent" + android:layout_height="134.5dp"> + + <RelativeLayout + android:id="@+id/bms_device_details_info_rl" + android:layout_width="match_parent" + android:layout_height="124.5dp" + android:layout_marginStart="@dimen/dp_16" + android:layout_marginTop="@dimen/dp_10" + android:layout_marginEnd="@dimen/dp_16" + android:background="@drawable/bj_ff1c1c1e"> + <!--鐢电珯鍥剧墖--> + <ImageView + android:id="@+id/bms_home_image_iv" + android:layout_width="44dp" + android:layout_height="42dp" + android:layout_marginStart="@dimen/dp_16" + android:layout_marginTop="@dimen/dp_13" + android:scaleType="centerCrop" /> + <!--鐢电珯鍚嶇О浠ュ強鍦板潃--> + <LinearLayout + android:id="@+id/bms_home_name_ll" + android:layout_width="match_parent" + android:layout_height="@dimen/dp_20" + android:layout_marginStart="@dimen/dp_5" + android:layout_marginTop="13.5dp" + android:layout_toStartOf="@+id/bms_home_debug_state_ll" + android:layout_toEndOf="@+id/bms_home_image_iv" + android:gravity="center_vertical" + android:orientation="horizontal"> + + <LinearLayout + android:layout_width="@dimen/dp_19" + android:layout_height="@dimen/dp_19" + android:gravity="center"> + + <TextView + android:id="@+id/bms_home_state_tv" + android:layout_width="7dp" + android:layout_height="7dp" + android:background="@drawable/device_state_ff38c494" /> + </LinearLayout> + + <TextView + android:id="@+id/bms_home_name_tv" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:ellipsize="end" + android:gravity="center_vertical|start" + android:paddingStart="0dp" + android:paddingEnd="@dimen/dp_5" + android:singleLine="true" + android:text="@string/power_station" + android:textColor="@color/text_FFACACAC" + android:textSize="@dimen/text_14" /> + </LinearLayout> + <!--鐢电珯鐘舵��--> + <LinearLayout + android:id="@+id/bms_home_debug_state_ll" + android:layout_width="wrap_content" + android:layout_height="@dimen/dp_18" + android:layout_alignParentTop="true" + android:layout_alignParentEnd="true" + android:layout_marginTop="@dimen/dp_15" + android:orientation="horizontal"> + + <ImageView + android:id="@+id/bms_home_debug_state_iv" + android:layout_width="@dimen/dp_18" + android:layout_height="@dimen/dp_18" /> + + <TextView + android:id="@+id/bms_home_debug_state_tv" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:paddingStart="0dp" + android:paddingEnd="@dimen/dp_16" + android:textColor="@color/text_FFACACAC" + android:textSize="@dimen/text_12" /> + </LinearLayout> + <!--鐢电珯鍦板潃--> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="@dimen/dp_19" + android:layout_below="@+id/bms_home_name_ll" + android:layout_alignStart="@+id/bms_home_name_ll"> + + <ImageView + android:layout_width="@dimen/dp_19" + android:layout_height="@dimen/dp_19" + android:src="@drawable/location" /> + + <TextView + android:id="@+id/bms_home_location_tv" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:ellipsize="end" + android:gravity="center_vertical|start" + android:paddingStart="0dp" + android:paddingEnd="@dimen/dp_5" + android:singleLine="true" + android:text="@string/power_station" + android:textColor="@color/text_FF5B5B5B" + android:textSize="@dimen/text_12" /> + </LinearLayout> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@+id/bms_home_image_iv" + android:layout_alignStart="@+id/bms_home_image_iv" + android:layout_marginTop="@dimen/dp_16" + android:layout_marginEnd="@dimen/dp_16" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="39dp" + android:orientation="horizontal"> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1"> + + <ImageView + android:layout_width="37.5dp" + android:layout_height="37.5dp" + android:layout_marginEnd="@dimen/dp_12" + android:src="@drawable/battery_storage" /> + + <LinearLayout + android:id="@+id/battery_storage_ll" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="@dimen/dp_20"> + + <TextView + android:id="@+id/bms_battery_storage_value_tv" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:gravity="center_vertical|start" + android:text="0" + android:textColor="@color/text_FFACACAC" + android:textSize="@dimen/text_14" /> + + <TextView + android:id="@+id/bms_battery_storage_kw_unit" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginStart="3dp" + android:gravity="bottom" + android:text="kWh" + android:textColor="@color/text_FF5B5B5B" + android:textSize="@dimen/text_10" /> + </LinearLayout> + + <TextView + android:id="@+id/bms_attery_storage_type_tv" + android:layout_width="match_parent" + android:layout_height="@dimen/dp_17" + android:layout_marginTop="3dp" + android:gravity="center_vertical|start" + android:text="@string/battery_capacity_indicator" + android:textColor="@color/text_FF5B5B5B" + android:textSize="@dimen/text_12" /> + + </LinearLayout> + </LinearLayout> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1"> + + <ImageView + android:layout_width="37.5dp" + android:layout_height="37.5dp" + android:layout_marginEnd="@dimen/dp_12" + android:src="@drawable/bms" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:gravity="center_vertical|start" + android:text="BMS" + android:textColor="@color/text_FFACACAC" + android:textSize="@dimen/text_14" /> + </LinearLayout> + </LinearLayout> + + <View + android:layout_width="match_parent" + android:layout_height="@dimen/dp_16" /> + + </LinearLayout> + + + </RelativeLayout> + + + </RelativeLayout> + +</com.hdl.photovoltaic.widget.SwipeLayout> + -- Gitblit v1.8.0