| | |
| | | xmlns:tools="http://schemas.android.com/tools" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:background="@color/text_FF000000" |
| | | tools:context=".ui.powerstation.HouseSearchActivity"> |
| | | <!--搜索--> |
| | | <RelativeLayout |
| | | android:id="@+id/power_station_search_cl" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="@dimen/dp_35" |
| | | android:layout_marginTop="@dimen/dp_48" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent"> |
| | | |
| | | <RelativeLayout |
| | | android:id="@+id/back_rl" |
| | | android:layout_width="@dimen/dp_50" |
| | | android:layout_height="match_parent"> |
| | | |
| | | <ImageView |
| | | android:id="@+id/power_station_back_iv" |
| | | android:layout_width="@dimen/dp_30" |
| | | android:layout_height="@dimen/dp_30" |
| | | android:layout_alignParentStart="true" |
| | | android:layout_centerVertical="true" |
| | | android:layout_marginStart="@dimen/dp_10" |
| | | android:src="@drawable/back" /> |
| | | </RelativeLayout> |
| | | |
| | | |
| | | <RelativeLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:layout_marginStart="@dimen/dp_7" |
| | | android:layout_marginEnd="@dimen/dp_21" |
| | | android:layout_toStartOf="@+id/power_station_search_tv" |
| | | android:layout_toEndOf="@+id/back_rl" |
| | | android:background="@drawable/search_bj_ff1c1c1e"> |
| | | |
| | | <ImageView |
| | | android:id="@+id/power_station_search_iv" |
| | | android:layout_width="@dimen/dp_18" |
| | | android:layout_height="@dimen/dp_18" |
| | | android:layout_alignParentStart="true" |
| | | android:layout_centerVertical="true" |
| | | android:layout_marginStart="@dimen/dp_13" |
| | | android:src="@drawable/search_path" /> |
| | | |
| | | <EditText |
| | | android:id="@+id/power_station_search_et" |
| | | android:layout_width="0dp" |
| | | android:layout_height="match_parent" |
| | | android:layout_alignParentEnd="true" |
| | | android:layout_centerVertical="true" |
| | | android:layout_marginStart="@dimen/dp_11" |
| | | android:layout_marginEnd="@dimen/dp_40" |
| | | android:layout_toEndOf="@+id/power_station_search_iv" |
| | | android:background="@null" |
| | | android:gravity="start|center_vertical" |
| | | android:hint="@string/search_station" |
| | | android:textColor="@color/text_FFACACAC" |
| | | android:textColorHint="@color/text_FF5B5B5B" |
| | | android:textSize="@dimen/text_14" /> |
| | | |
| | | <ImageView |
| | | android:id="@+id/power_station_clear_iv" |
| | | android:layout_width="@dimen/dp_20" |
| | | android:layout_height="@dimen/dp_20" |
| | | android:layout_alignParentEnd="true" |
| | | android:layout_centerVertical="true" |
| | | android:layout_marginEnd="@dimen/dp_13" |
| | | android:src="@drawable/clear" /> |
| | | </RelativeLayout> |
| | | |
| | | <TextView |
| | | android:id="@+id/power_station_search_tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="match_parent" |
| | | android:layout_alignParentEnd="true" |
| | | android:layout_centerVertical="true" |
| | | android:layout_marginEnd="@dimen/dp_21" |
| | | android:gravity="center" |
| | | android:text="@string/search" |
| | | android:textColor="@color/text_FFACACAC" |
| | | android:textSize="@dimen/text_14" /> |
| | | |
| | | |
| | | </RelativeLayout> |
| | | <!--历史记录--> |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:id="@+id/history_list_parent" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/power_station_search_cl"> |
| | | |
| | | <TextView |
| | | android:id="@+id/history_list_title_tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="@dimen/dp_23" |
| | | android:layout_marginStart="@dimen/dp_16" |
| | | android:layout_marginTop="@dimen/dp_23" |
| | | android:layout_marginEnd="@dimen/dp_21" |
| | | android:text="@string/history_search" |
| | | android:textColor="@color/text_FF5B5B5B" |
| | | android:textSize="@dimen/text_16" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" /> |
| | | |
| | | <ImageView |
| | | android:id="@+id/power_station_del_iv" |
| | | android:layout_width="@dimen/dp_26" |
| | | android:layout_height="@dimen/dp_26" |
| | | android:layout_marginTop="@dimen/dp_21" |
| | | android:layout_marginEnd="@dimen/dp_16" |
| | | android:src="@drawable/history_del" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" /> |
| | | |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:id="@+id/history_list_rcv" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:layout_marginTop="67dp" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" /> |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | <!--搜索数据--> |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:id="@+id/list_parent" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:layout_marginTop="@dimen/dp_30" |
| | | android:visibility="gone" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/power_station_search_cl"> |
| | | |
| | | <androidx.swiperefreshlayout.widget.SwipeRefreshLayout |
| | | android:id="@+id/list_srl" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent"> |
| | | |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:id="@+id/list_rcv" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" /> |
| | | </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | <!--没有数据显示样式--> |
| | | <include |
| | | android:id="@+id/device_null_data_ic" |
| | | layout="@layout/null_data_view" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="224dp" |
| | | android:visibility="gone" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/power_station_search_cl" /> |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |