From 48bd94f4e362c8a604017cbaf4c12e08be10c816 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期五, 10 五月 2024 17:25:37 +0800 Subject: [PATCH] 2024年05月10日17:25:30 --- app/src/main/res/layout/fragment_message.xml | 265 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 262 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/layout/fragment_message.xml b/app/src/main/res/layout/fragment_message.xml index fc3fa41..d22ba4f 100644 --- a/app/src/main/res/layout/fragment_message.xml +++ b/app/src/main/res/layout/fragment_message.xml @@ -1,9 +1,268 @@ <?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"> -<!-- <include--> -<!-- android:id="@+id/toolbar_top_fragment_me_rl"--> -<!-- layout="@layout/toolbar_top_view_52" />--> + <!--澶撮儴鏍囩--> + <RelativeLayout + android:id="@+id/message_rl" + android:layout_width="match_parent" + android:layout_height="@dimen/dp_31" + 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"> + + <TextView + android:id="@+id/message_tab_nascent_title_tv" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_centerVertical="true" + android:gravity="center_vertical" + android:text="@string/message_nascent" + android:textColor="@color/text_90000000" + android:textSize="@dimen/text_20" + android:textStyle="bold" /> + + <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_40000000" + android:textSize="@dimen/text_16" + + /> + + <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" + + /> + + + </RelativeLayout> + + <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"> + + <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="Search the message" + android:textColor="@color/text_40000000" + 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_90000000" + 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_90000000" + 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_90000000" + 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_cl" /> </androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file -- Gitblit v1.8.0