<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:layout_width="match_parent"
|
android:layout_height="76dp">
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="66dp"
|
android:layout_marginStart="@dimen/dp_16"
|
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_12"
|
android:scaleType="centerCrop"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
|
<LinearLayout
|
android:id="@+id/home_name_ll"
|
android:layout_width="0dp"
|
android:layout_height="@dimen/dp_20"
|
android:layout_marginStart="@dimen/dp_24"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toEndOf="@+id/home_image_iv"
|
app:layout_constraintTop_toTopOf="@+id/home_image_iv">
|
|
<TextView
|
android:id="@+id/home_name_tv"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="1"
|
android:ellipsize="end"
|
android:gravity="center_vertical|start"
|
android:singleLine="true"
|
android:text="@string/power_station"
|
android:textColor="@color/text_FFACACAC"
|
android:textSize="@dimen/text_14" />
|
|
<TextView
|
android:id="@+id/home_last_date_tv"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:ellipsize="end"
|
android:gravity="center_vertical|end"
|
android:paddingStart="4dp"
|
android:paddingEnd="@dimen/dp_16"
|
android:singleLine="true"
|
android:text="@string/power_station"
|
android:textColor="@color/text_FFACACAC"
|
android:textSize="@dimen/text_12" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="21dp"
|
android:layout_marginStart="@dimen/dp_11"
|
android:layout_marginTop="4.5dp"
|
android:gravity="center_vertical"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toEndOf="@+id/home_image_iv"
|
app:layout_constraintTop_toBottomOf="@+id/home_name_ll">
|
|
<TextView
|
android:id="@+id/item_estate_tv"
|
android:layout_width="7dp"
|
android:layout_height="7dp"
|
android:background="@drawable/device_state_ffb9b9b9" />
|
|
<TextView
|
android:id="@+id/item_content_tv"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="1"
|
android:ellipsize="end"
|
android:gravity="center_vertical|start"
|
android:paddingStart="6dp"
|
android:paddingEnd="5dp"
|
android:singleLine="true"
|
android:textColor="@color/text_FFACACAC"
|
android:textSize="@dimen/text_12" />
|
<!--未读标签-->
|
<TextView
|
android:id="@+id/item_unread_message_tv"
|
android:layout_width="21dp"
|
android:layout_height="21dp"
|
android:gravity="center"
|
android:layout_marginEnd="@dimen/dp_16"
|
android:background="@drawable/red_message_house_font"
|
android:textColor="@color/text_FFFFFFFF"
|
android:textSize="12sp" />
|
</LinearLayout>
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</LinearLayout>
|