From f7c38847b8e00c84c30e51a92c03071d3e9a9da8 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期二, 14 五月 2024 09:08:57 +0800 Subject: [PATCH] 2024年05月14日09:08:49 --- app/src/main/res/layout/activity_my_power_station.xml | 66 ++++++++++++++++++++++++-------- 1 files changed, 49 insertions(+), 17 deletions(-) diff --git a/app/src/main/res/layout/activity_my_power_station.xml b/app/src/main/res/layout/activity_my_power_station.xml index 8e9da08..dbfaefd 100644 --- a/app/src/main/res/layout/activity_my_power_station.xml +++ b/app/src/main/res/layout/activity_my_power_station.xml @@ -4,15 +4,37 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@color/text_F9FAFB" - tools:context=".ui.home.MyPowerStationActivity"> + android:background="@drawable/bj" + tools:context="com.hdl.photovoltaic.ui.BPowerStationActivity"> - <!--鎴戠殑鐢电珯-Fragment--> + <!--棣栭〉-Fragment--> <androidx.fragment.app.FragmentContainerView + android:id="@+id/my_home_page_fcv0" + android:name="com.hdl.photovoltaic.ui.home.HomePageFragment" + android:layout_width="0dp" + android:layout_height="0dp" + android:visibility="gone" + app:layout_constraintBottom_toTopOf="@+id/my_power_station_bottom_ll" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + <!--鐢电珯-Fragment--> + <androidx.fragment.app.FragmentContainerView android:id="@+id/my_power_station_fcv1" - android:name="com.example.photovoltaic.ui.home.HouseListFragment" - android:layout_width="match_parent" + android:name="com.hdl.photovoltaic.ui.powerstation.HouseListFragment" + android:layout_width="0dp" + android:layout_height="0dp" + android:visibility="gone" + app:layout_constraintBottom_toTopOf="@+id/my_power_station_bottom_ll" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + <!--鎶ヨ-Fragment--> + <androidx.fragment.app.FragmentContainerView + android:id="@+id/my_message_fcv2" + android:name="com.hdl.photovoltaic.ui.message.MessageFragment" + android:layout_width="0dp" android:layout_height="0dp" android:visibility="gone" app:layout_constraintBottom_toTopOf="@+id/my_power_station_bottom_ll" @@ -21,9 +43,9 @@ app:layout_constraintTop_toTopOf="parent" /> <!--鎴戠殑-Fragment--> <androidx.fragment.app.FragmentContainerView - android:id="@+id/my_power_station_fcv2" - android:name="com.example.photovoltaic.ui.home.MeFragment" - android:layout_width="match_parent" + android:id="@+id/my_me_fcv3" + android:name="com.hdl.photovoltaic.ui.me.MeFragment" + android:layout_width="0dp" android:layout_height="0dp" android:visibility="gone" app:layout_constraintBottom_toTopOf="@+id/my_power_station_bottom_ll" @@ -36,24 +58,34 @@ android:layout_width="match_parent" android:layout_height="@dimen/dp_49" android:background="@color/text_FFFFFFFF" - android:gravity="center" android:orientation="horizontal" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent"> - <!--鐢电珯-鏍囩--> + <!--棣栭〉-妯″潡--> + <include + android:id="@+id/my_power_station_bottom_il0" + layout="@layout/home_bottom_line" + + /> + <!--鐢电珯-妯″潡--> <include android:id="@+id/my_power_station_bottom_il1" + layout="@layout/home_bottom_line" + + /> + <!--鎶ヨ-妯″潡--> + <include + android:id="@+id/my_message_bottom_il2" layout="@layout/home_bottom_line" /> - - <View - android:layout_width="@dimen/dp_1" - android:layout_height="@dimen/dp_17" - android:background="@color/text_CBCDD1" /> - <!--鎴戠殑-鏍囩--> + <!-- <View--> + <!-- android:layout_width="@dimen/dp_1"--> + <!-- android:layout_height="@dimen/dp_17"--> + <!-- android:background="@color/text_CBCDD1" />--> + <!--鎴戠殑-妯″潡--> <include - android:id="@+id/my_power_station_bottom_il2" + android:id="@+id/my_me_bottom_il3" layout="@layout/home_bottom_line" /> -- Gitblit v1.8.0