| | |
| | | tools:context=".ui.home.HomePageFragment"> |
| | | |
| | | <TextView |
| | | android:id="@+id/test" |
| | | android:id="@+id/home_page_title_tv" |
| | | style="@style/Text20Style" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="点击测试" |
| | | android:textSize="@dimen/dp_30" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | android:layout_height="@dimen/dp_24" |
| | | android:layout_marginStart="@dimen/dp_16" |
| | | android:layout_marginTop="@dimen/dp_9" |
| | | android:text="@string/power_shome_page" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" /> |
| | | |
| | | <com.github.AAChartModel.AAChartCore.AAChartCreator.AAChartView |
| | | android:id="@+id/AAChartView" |
| | | <ImageView |
| | | android:id="@+id/home_page_station_add_iv" |
| | | android:layout_width="@dimen/dp_18" |
| | | android:layout_height="@dimen/dp_18" |
| | | android:layout_marginTop="@dimen/dp_9" |
| | | android:layout_marginEnd="@dimen/dp_24" |
| | | android:src="@drawable/add" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" /> |
| | | |
| | | <LinearLayout |
| | | android:id="@+id/home_page_station_ll" |
| | | android:layout_width="0dp" |
| | | android:layout_height="@dimen/dp_56" |
| | | android:layout_marginTop="@dimen/dp_26" |
| | | android:layout_marginEnd="@dimen/dp_16" |
| | | android:orientation="horizontal" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="@+id/home_page_title_tv" |
| | | app:layout_constraintTop_toBottomOf="@+id/home_page_title_tv"> |
| | | <!--全部--> |
| | | <include |
| | | android:id="@+id/home_page_station_all_ic" |
| | | layout="@layout/item_station" /> |
| | | |
| | | <View |
| | | android:layout_width="15.5dp" |
| | | android:layout_height="match_parent" /> |
| | | <!--故障--> |
| | | <include |
| | | android:id="@+id/home_page_station_fault_ic" |
| | | layout="@layout/item_station" /> |
| | | |
| | | <View |
| | | android:layout_width="16dp" |
| | | android:layout_height="match_parent" /> |
| | | <!--离线--> |
| | | <include |
| | | android:id="@+id/home_page_station_offline_ic" |
| | | layout="@layout/item_station" /> |
| | | |
| | | <View |
| | | android:layout_width="15.5dp" |
| | | android:layout_height="match_parent" /> |
| | | <!--待接入--> |
| | | <include |
| | | android:id="@+id/home_page_station_connected_ic" |
| | | layout="@layout/item_station" /> |
| | | |
| | | |
| | | </LinearLayout> |
| | | |
| | | |
| | | <ScrollView |
| | | android:layout_width="0dp" |
| | | android:layout_height="0dp" |
| | | android:layout_marginTop="@dimen/dp_30" |
| | | android:layout_marginStart="@dimen/dp_16" |
| | | android:layout_marginEnd="@dimen/dp_16" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/test" /> |
| | | app:layout_constraintTop_toBottomOf="@+id/home_page_station_ll"> |
| | | |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content"> |
| | | |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:id="@+id/home_page_station_info_cl" |
| | | android:layout_width="0dp" |
| | | android:layout_height="312dp" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent"> |
| | | |
| | | <RelativeLayout |
| | | android:id="@+id/home_page_station_info_rl1" |
| | | android:layout_width="0dp" |
| | | android:layout_height="146dp" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent"> |
| | | |
| | | <RelativeLayout |
| | | android:id="@+id/home_page_station_info_rl1_f" |
| | | android:layout_width="102dp" |
| | | android:layout_height="102dp" |
| | | android:layout_marginTop="@dimen/dp_22" |
| | | android:background="@drawable/disc"> |
| | | |
| | | <TextView |
| | | android:id="@+id/home_page_station_info_rl1_f_text1_tv" |
| | | android:layout_width="62dp" |
| | | android:layout_height="31.5dp" |
| | | android:layout_centerVertical="true" |
| | | android:gravity="end|center_vertical" |
| | | android:text="88" |
| | | android:textSize="@dimen/text_26" |
| | | android:textStyle="bold" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/home_page_station_info_rl1_f_text2_tv" |
| | | android:layout_width="9dp" |
| | | android:layout_height="14.5dp" |
| | | android:layout_alignBottom="@+id/home_page_station_info_rl1_f_text1_tv" |
| | | android:layout_marginStart="2.5dp" |
| | | android:layout_marginBottom="4.5dp" |
| | | android:layout_toEndOf="@+id/home_page_station_info_rl1_f_text1_tv" |
| | | android:text="%" |
| | | android:textColor="@color/text_191919" |
| | | android:textSize="@dimen/text_12" /> |
| | | </RelativeLayout> |
| | | |
| | | |
| | | <TextView |
| | | android:id="@+id/home_page_station_info_rl1_text1_tv" |
| | | style="@style/Text20Style" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="@dimen/dp_24" |
| | | android:layout_marginStart="@dimen/dp_16" |
| | | android:layout_marginTop="@dimen/dp_21" |
| | | android:layout_toEndOf="@+id/home_page_station_info_rl1_f" |
| | | android:text="33333333" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/home_page_station_info_rl1_text2_tv" |
| | | style="@style/Text14Style" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="@dimen/dp_17" |
| | | android:layout_below="@+id/home_page_station_info_rl1_text1_tv" |
| | | android:layout_alignStart="@+id/home_page_station_info_rl1_text1_tv" |
| | | android:layout_marginTop="3dp" |
| | | android:text="kw.h" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/home_page_station_info_rl1_text3_tv" |
| | | style="@style/Text20Style" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="@dimen/dp_24" |
| | | android:layout_below="@+id/home_page_station_info_rl1_text2_tv" |
| | | android:layout_alignStart="@+id/home_page_station_info_rl1_text1_tv" |
| | | android:layout_marginTop="@dimen/dp_16" |
| | | android:text="33333" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/home_page_station_info_rl1_text4_tv" |
| | | style="@style/Text14Style" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="@dimen/dp_17" |
| | | android:layout_below="@+id/home_page_station_info_rl1_text3_tv" |
| | | android:layout_alignStart="@+id/home_page_station_info_rl1_text1_tv" |
| | | android:layout_marginTop="3dp" |
| | | android:text="kw.h" /> |
| | | |
| | | </RelativeLayout> |
| | | |
| | | <RelativeLayout |
| | | android:id="@+id/home_page_station_info_rl2" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="@dimen/dp_166" |
| | | android:background="@drawable/bj_13_ffffff" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/home_page_station_info_rl1"> |
| | | |
| | | <ImageView |
| | | android:layout_width="25dp" |
| | | android:layout_height="22dp" |
| | | android:layout_marginStart="15.5dp" |
| | | android:layout_marginTop="10.5dp" |
| | | android:src="@drawable/info_1" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/home_page_station_info_rl1_title_tv" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="14.5dp" |
| | | android:layout_marginStart="@dimen/dp_47" |
| | | android:layout_marginTop="17dp" |
| | | android:text="Electricity /kw.h" |
| | | android:textColor="@color/text_191919" |
| | | android:textSize="@dimen/text_12" /> |
| | | |
| | | <include |
| | | android:id="@+id/home_page_station_info_rl2_day_ic" |
| | | layout="@layout/item_data" |
| | | android:layout_width="@dimen/dp_171" |
| | | android:layout_height="@dimen/dp_44" |
| | | android:layout_marginTop="47.5dp" /> |
| | | |
| | | <View |
| | | android:id="@+id/line1_v" |
| | | android:layout_width="0.5dp" |
| | | android:layout_height="37.5dp" |
| | | android:layout_marginTop="53dp" |
| | | android:layout_toEndOf="@+id/home_page_station_info_rl2_day_ic" |
| | | android:background="@color/text_E1E1E1" /> |
| | | |
| | | <include |
| | | android:id="@+id/home_page_station_info_rl2_mon_ic" |
| | | layout="@layout/item_data" |
| | | android:layout_width="@dimen/dp_171" |
| | | android:layout_height="@dimen/dp_44" |
| | | android:layout_marginTop="47.5dp" |
| | | android:layout_toEndOf="@+id/line1_v" /> |
| | | |
| | | <include |
| | | android:id="@+id/home_page_station_info_rl2_year_ic" |
| | | layout="@layout/item_data" |
| | | android:layout_width="@dimen/dp_171" |
| | | android:layout_height="@dimen/dp_44" |
| | | android:layout_marginTop="106dp" /> |
| | | |
| | | <View |
| | | android:id="@+id/line2_v" |
| | | android:layout_width="0.5dp" |
| | | android:layout_height="37.5dp" |
| | | android:layout_marginTop="109.5dp" |
| | | android:layout_toEndOf="@+id/home_page_station_info_rl2_year_ic" |
| | | android:background="@color/text_E1E1E1" /> |
| | | |
| | | <include |
| | | android:id="@+id/home_page_station_info_rl2_cumulative_ic" |
| | | layout="@layout/item_data" |
| | | android:layout_width="@dimen/dp_171" |
| | | android:layout_height="@dimen/dp_44" |
| | | android:layout_marginTop="106dp" |
| | | android:layout_toEndOf="@+id/line2_v" /> |
| | | |
| | | </RelativeLayout> |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | |
| | | <TextView |
| | | android:id="@+id/test1" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="点击测试1" |
| | | android:textSize="@dimen/text_30" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/home_page_station_info_cl" /> |
| | | |
| | | <com.github.AAChartModel.AAChartCore.AAChartCreator.AAChartView |
| | | android:id="@+id/AAChartView1" |
| | | android:layout_width="0dp" |
| | | android:layout_height="300dp" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/test1" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/test2" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="点击测试2" |
| | | android:textSize="@dimen/text_30" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/AAChartView1" /> |
| | | |
| | | <com.github.AAChartModel.AAChartCore.AAChartCreator.AAChartView |
| | | android:id="@+id/AAChartView2" |
| | | android:layout_width="0dp" |
| | | android:layout_height="300dp" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/test2" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/test3" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="点击测试3" |
| | | android:textSize="@dimen/text_30" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/AAChartView2" /> |
| | | |
| | | <com.github.AAChartModel.AAChartCore.AAChartCreator.AAChartView |
| | | android:id="@+id/AAChartView3" |
| | | android:layout_width="0dp" |
| | | android:layout_height="300dp" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toBottomOf="@+id/test3" /> |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | |
| | | |
| | | </ScrollView> |
| | | |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |