<?xml version="1.0" encoding="utf-8"?>
|
|
<com.hdl.photovoltaic.widget.SwipeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:id="@+id/item_parent_swipeLayout"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
<include
|
android:id="@+id/swipe_layout_il"
|
layout="@layout/swipe_right_layout" />
|
|
<RelativeLayout
|
android:id="@+id/item_parent_rl"
|
android:layout_width="match_parent"
|
android:layout_height="204.5dp">
|
|
<RelativeLayout
|
android:id="@+id/device_details_info_rl"
|
android:layout_width="match_parent"
|
android:layout_height="194.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/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/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/home_debug_state_ll"
|
android:layout_toEndOf="@+id/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/home_state_tv"
|
android:layout_width="7dp"
|
android:layout_height="7dp"
|
android:background="@drawable/device_state_ff38c494" />
|
</LinearLayout>
|
|
<TextView
|
android:id="@+id/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/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_14"
|
android:orientation="horizontal">
|
|
<ImageView
|
android:id="@+id/home_debug_state_iv"
|
android:layout_width="@dimen/dp_18"
|
android:layout_height="@dimen/dp_18" />
|
|
<TextView
|
android:id="@+id/home_debug_state_tv"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:paddingStart="0dp"
|
android:paddingEnd="@dimen/dp_16"
|
android:paddingTop="@dimen/dp_1"
|
android:paddingBottom="@dimen/dp_1"
|
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/home_name_ll"
|
android:layout_alignStart="@+id/home_name_ll">
|
|
<ImageView
|
android:layout_width="@dimen/dp_19"
|
android:layout_height="@dimen/dp_19"
|
android:src="@drawable/location" />
|
|
<TextView
|
android:id="@+id/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/home_image_iv"
|
android:layout_alignStart="@+id/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="37.5dp"
|
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/pv" />
|
|
<LinearLayout
|
android:id="@+id/pv_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/pv_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/pv_kw_unit"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:layout_marginStart="3dp"
|
android:gravity="bottom"
|
android:text="kWp"
|
android:textColor="@color/text_FF5B5B5B"
|
android:textSize="@dimen/text_10" />
|
</LinearLayout>
|
|
<TextView
|
android:id="@+id/pv_type_tv"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_14"
|
android:layout_marginTop="3dp"
|
android:gravity="center_vertical|start"
|
android:text="@string/pv"
|
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/generation_today" />
|
|
<LinearLayout
|
android:id="@+id/generation_today_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/generation_today_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/generation_today_kw_unit"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:layout_marginStart="3dp"
|
android:gravity="bottom"
|
android:text="kW"
|
android:textColor="@color/text_FF5B5B5B"
|
android:textSize="@dimen/text_10" />
|
</LinearLayout>
|
|
<TextView
|
android:id="@+id/generation_today_type_tv"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_14"
|
android:layout_marginTop="3dp"
|
android:gravity="center_vertical|start"
|
android:text="@string/day_generation"
|
android:textColor="@color/text_FF5B5B5B"
|
android:textSize="@dimen/text_12" />
|
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_32">
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="0.5dp"
|
android:layout_gravity="center"
|
android:background="@color/text_1AFFFFFF" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="37.5dp"
|
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/output" />
|
|
<LinearLayout
|
android:id="@+id/output_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/output_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/output_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/output_type_tv"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_14"
|
android:layout_marginTop="3dp"
|
android:gravity="center_vertical|start"
|
android:text="@string/output"
|
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/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/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/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/battery_storage_type_tv"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dp_14"
|
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>
|
|
|
</LinearLayout>
|
|
|
</RelativeLayout>
|
|
|
</RelativeLayout>
|
|
</com.hdl.photovoltaic.widget.SwipeLayout>
|