| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| | | xmlns:app="http://schemas.android.com/apk/res-auto" |
| | | android:id="@+id/message_parent" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:background="@color/text_F5F7FA"> |
| | | |
| | | android:layout_height="match_parent"> |
| | | <!--头部标签--> |
| | | <RelativeLayout |
| | | android:id="@+id/message_rl" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="@dimen/dp_52" |
| | | android:background="@color/text_245EC3" |
| | | android:layout_height="@dimen/dp_36" |
| | | android:layout_marginStart="@dimen/dp_16" |
| | | android:layout_marginTop="@dimen/dp_44" |
| | | android:layout_marginEnd="@dimen/dp_16" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent"> |
| | | |
| | | <LinearLayout |
| | | android:id="@+id/message_tab_ll" |
| | | android:layout_width="match_parent" |
| | | <TextView |
| | | android:id="@+id/message_tab_nascent_title_tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="match_parent" |
| | | android:layout_marginStart="@dimen/dp_17" |
| | | android:layout_marginEnd="@dimen/dp_16" |
| | | android:orientation="horizontal"> |
| | | android:layout_centerVertical="true" |
| | | android:gravity="center_vertical" |
| | | android:text="@string/message_nascent" |
| | | android:textColor="@color/text_E6000000" |
| | | android:textSize="@dimen/text_20" |
| | | android:textStyle="bold" /> |
| | | |
| | | <!--发生中--> |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:id="@+id/message_tab_nascent_cl" |
| | | android:layout_width="0dp" |
| | | android:layout_height="match_parent" |
| | | android:layout_weight="1"> |
| | | <TextView |
| | | android:id="@+id/message_tab_recover_title_tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="match_parent" |
| | | android:layout_centerVertical="true" |
| | | android:layout_marginStart="@dimen/dp_21" |
| | | android:layout_marginEnd="@dimen/dp_4" |
| | | android:layout_toStartOf="@+id/all_clear_tv" |
| | | android:layout_toEndOf="@+id/message_tab_nascent_title_tv" |
| | | android:gravity="start|center_vertical" |
| | | android:text="@string/alarm_record" |
| | | android:textColor="@color/text_66000000" |
| | | android:textSize="@dimen/text_16" |
| | | |
| | | <TextView |
| | | android:id="@+id/message_tab_nascent_title_tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="@dimen/dp_23" |
| | | android:layout_marginTop="@dimen/dp_16" |
| | | android:gravity="center" |
| | | android:text="@string/message_nascent" |
| | | android:textColor="@color/text_FFFFFFFF" |
| | | android:textSize="@dimen/text_16" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" /> |
| | | /> |
| | | |
| | | <View |
| | | android:id="@+id/line2_v" |
| | | android:layout_width="0dp" |
| | | android:layout_height="3dp" |
| | | android:layout_marginTop="@dimen/dp_11" |
| | | android:background="@color/text_FFFFFFFF" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | app:layout_constraintEnd_toEndOf="@+id/message_tab_nascent_title_tv" |
| | | app:layout_constraintStart_toStartOf="@+id/message_tab_nascent_title_tv" /> |
| | | <TextView |
| | | android:id="@+id/all_clear_tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="@dimen/dp_31" |
| | | android:layout_alignParentEnd="true" |
| | | android:gravity="center" |
| | | android:text="@string/all_read" |
| | | android:textColor="@color/text_38C494" |
| | | android:textSize="@dimen/dp_16" |
| | | |
| | | /> |
| | | |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | <!--已恢复--> |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:id="@+id/message_tab_recover_cl" |
| | | android:layout_width="0dp" |
| | | android:layout_height="match_parent" |
| | | android:layout_weight="1"> |
| | | |
| | | <TextView |
| | | android:id="@+id/message_tab_recover_title_tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="@dimen/dp_23" |
| | | android:layout_marginTop="@dimen/dp_16" |
| | | android:gravity="center" |
| | | android:text="@string/message_recover" |
| | | android:textColor="@color/text_FFFFFFFF" |
| | | android:textSize="@dimen/text_16" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" /> |
| | | |
| | | <View |
| | | android:id="@+id/line3_v" |
| | | android:layout_width="0dp" |
| | | android:layout_height="3dp" |
| | | android:layout_marginTop="@dimen/dp_11" |
| | | android:background="@color/text_FFFFFFFF" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | app:layout_constraintEnd_toEndOf="@+id/message_tab_recover_title_tv" |
| | | app:layout_constraintStart_toStartOf="@+id/message_tab_recover_title_tv" /> |
| | | |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | <!--全部--> |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:id="@+id/message_tab_all_cl" |
| | | android:layout_width="0dp" |
| | | android:layout_height="match_parent" |
| | | android:layout_weight="1"> |
| | | |
| | | <TextView |
| | | android:id="@+id/message_tab_all_title_tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="@dimen/dp_23" |
| | | android:layout_marginTop="@dimen/dp_16" |
| | | android:gravity="center" |
| | | android:text="@string/message_all" |
| | | android:textColor="@color/text_FFFFFFFF" |
| | | android:textSize="@dimen/text_16" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" /> |
| | | |
| | | <View |
| | | android:id="@+id/line1_v" |
| | | android:layout_width="0dp" |
| | | android:layout_height="3dp" |
| | | android:layout_marginTop="@dimen/dp_11" |
| | | android:background="@color/text_FFFFFFFF" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | app:layout_constraintEnd_toEndOf="@+id/message_tab_all_title_tv" |
| | | app:layout_constraintStart_toStartOf="@+id/message_tab_all_title_tv" /> |
| | | |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | |
| | | </LinearLayout> |
| | | </RelativeLayout> |
| | | |
| | | <!--发生中Fragment--> |
| | | <androidx.fragment.app.FragmentContainerView |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:id="@+id/message_cl" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="98dp" |
| | | android:layout_marginTop="@dimen/dp_21" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/message_rl"> |
| | | <!--搜索--> |
| | | <RelativeLayout |
| | | android:id="@+id/message_search_cl" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="@dimen/dp_35" |
| | | android:layout_marginStart="@dimen/dp_13" |
| | | android:layout_marginEnd="@dimen/dp_16" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent"> |
| | | |
| | | android:id="@+id/message_nascent_fcv" |
| | | android:name="com.hdl.photovoltaic.ui.message.NascentMessageFragment" |
| | | <RelativeLayout |
| | | android:id="@+id/message_search_click_cl" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:layout_alignParentEnd="true" |
| | | android:layout_marginEnd="@dimen/dp_17" |
| | | android:background="@drawable/search_bj_ff05000000"> |
| | | |
| | | <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" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/power_station_search_tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="@dimen/dp_17" |
| | | android:layout_centerVertical="true" |
| | | android:layout_marginStart="@dimen/dp_11" |
| | | android:layout_toEndOf="@+id/power_station_search_iv" |
| | | android:text="@string/enter_alarm_name" |
| | | android:textColor="@color/text_66000000" |
| | | android:textSize="@dimen/text_14" /> |
| | | </RelativeLayout> |
| | | |
| | | |
| | | </RelativeLayout> |
| | | <!--条件筛选--> |
| | | <RelativeLayout |
| | | android:id="@+id/message_condition_screening_rl" |
| | | android:layout_width="0dp" |
| | | android:layout_height="@dimen/dp_62" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/message_search_cl"> |
| | | |
| | | <LinearLayout |
| | | android:id="@+id/message_tab_ll" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:layout_marginStart="@dimen/dp_16" |
| | | android:layout_marginEnd="@dimen/dp_16" |
| | | android:orientation="horizontal"> |
| | | <!--全部设备--> |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:id="@+id/message_tab_all_device_cl" |
| | | android:layout_width="0dp" |
| | | android:layout_height="match_parent" |
| | | android:layout_weight="1"> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:gravity="center_vertical" |
| | | android:orientation="horizontal"> |
| | | |
| | | <TextView |
| | | android:id="@+id/all_device_title_tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="@dimen/dp_20" |
| | | android:text="@string/alarm_all_device" |
| | | android:textColor="@color/text_E6000000" |
| | | android:textSize="@dimen/text_14" /> |
| | | |
| | | <View |
| | | android:layout_width="@dimen/dp_7" |
| | | android:layout_height="match_parent" /> |
| | | |
| | | <ImageView |
| | | android:id="@+id/all_device_title_iv" |
| | | android:layout_width="@dimen/dp_10" |
| | | android:layout_height="@dimen/dp_10" |
| | | android:layout_marginStart="@dimen/dp_7" |
| | | android:background="@drawable/up" /> |
| | | |
| | | </LinearLayout> |
| | | |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | <!--全部等级--> |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:id="@+id/message_tab_all_grade_cl" |
| | | android:layout_width="0dp" |
| | | android:layout_height="match_parent" |
| | | android:layout_weight="1"> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:gravity="center" |
| | | android:orientation="horizontal"> |
| | | |
| | | <TextView |
| | | android:id="@+id/all_grade_title_tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="@dimen/dp_20" |
| | | android:text="@string/alarm_all_grade" |
| | | android:textColor="@color/text_E6000000" |
| | | android:textSize="@dimen/text_14" /> |
| | | |
| | | <View |
| | | android:layout_width="7dp" |
| | | android:layout_height="match_parent" /> |
| | | |
| | | <ImageView |
| | | android:id="@+id/all_grade_title_iv" |
| | | android:layout_width="@dimen/dp_10" |
| | | android:layout_height="@dimen/dp_10" |
| | | android:layout_marginStart="@dimen/dp_7" |
| | | android:background="@drawable/up" /> |
| | | </LinearLayout> |
| | | |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | <!--全部时间--> |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:id="@+id/message_tab_all_time_cl" |
| | | android:layout_width="0dp" |
| | | android:layout_height="match_parent" |
| | | android:layout_weight="1"> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:gravity="center_vertical|end" |
| | | android:orientation="horizontal"> |
| | | |
| | | <TextView |
| | | android:id="@+id/all_time_title_tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="@dimen/dp_20" |
| | | android:layout_marginEnd="@dimen/dp_7" |
| | | android:text="@string/alarm_all_time" |
| | | android:textColor="@color/text_E6000000" |
| | | android:textSize="@dimen/text_14" /> |
| | | |
| | | <View |
| | | android:layout_width="@dimen/dp_7" |
| | | android:layout_height="match_parent" /> |
| | | |
| | | <ImageView |
| | | android:id="@+id/all_time_title_iv" |
| | | android:layout_width="@dimen/dp_10" |
| | | android:layout_height="@dimen/dp_10" |
| | | android:background="@drawable/up" /> |
| | | </LinearLayout> |
| | | |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | </LinearLayout> |
| | | </RelativeLayout> |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | |
| | | |
| | | <androidx.swiperefreshlayout.widget.SwipeRefreshLayout |
| | | android:id="@+id/message_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_toBottomOf="@+id/message_cl"> |
| | | |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:id="@+id/message_rcv" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:clipToPadding="false" |
| | | android:paddingBottom="@dimen/dp_16" /> |
| | | </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> |
| | | |
| | | <!--没有数据显示样式--> |
| | | <include |
| | | android:id="@+id/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/message_rl" /> |
| | | <!--已恢复Fragment--> |
| | | <androidx.fragment.app.FragmentContainerView |
| | | |
| | | android:id="@+id/message_recover_fcv" |
| | | android:name="com.hdl.photovoltaic.ui.message.RecoverMessageFragment" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:visibility="gone" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/message_rl" /> |
| | | <!--全部Fragment--> |
| | | <androidx.fragment.app.FragmentContainerView |
| | | |
| | | android:id="@+id/message_all_fcv" |
| | | android:name="com.hdl.photovoltaic.ui.message.AllMessageFragment" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:visibility="gone" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/message_rl" /> |
| | | app:layout_constraintTop_toBottomOf="@+id/message_cl" /> |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |