<?xml version="1.0" encoding="utf-8"?>
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
<TextView
|
android:id="@+id/tv_total"
|
android:layout_width="match_parent"
|
android:layout_height="98dp"
|
app:layout_constraintTop_toTopOf="parent"
|
android:layout_margin="14dp"
|
android:background="@drawable/bg_green_10dp"
|
android:textSize="24sp"
|
android:text="0"
|
android:gravity="center_horizontal"
|
android:paddingTop="15dp"
|
android:textColor="@color/white"
|
android:textStyle="bold"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginBottom="20dp"
|
android:text="累计总能量值"
|
android:textColor="@color/white"
|
android:textSize="14sp"
|
android:alpha="0.8"
|
app:layout_constraintBottom_toBottomOf="@id/tv_total"/>
|
<com.flyco.tablayout.SlidingTabLayout
|
android:id="@+id/tab_bar"
|
android:layout_width="match_parent"
|
android:layout_height="44dp"
|
app:layout_constraintTop_toBottomOf="@id/tv_total"
|
android:layout_marginTop="20dp"
|
app:tl_tab_space_equal="true"
|
app:tl_indicator_width="12dp"
|
app:tl_indicator_height="2dp"
|
app:tl_indicator_corner_radius="1dp"
|
app:tl_indicator_color="@color/textGreen"
|
app:tl_textsize="14sp"
|
app:tl_textUnselectColor="@color/textColor66"
|
app:tl_textSelectColor="@color/textGreen"/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:background="@color/dividing_line_color"
|
app:layout_constraintTop_toBottomOf="@id/tab_bar"
|
/>
|
<androidx.viewpager.widget.ViewPager
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:id="@+id/view_pager"
|
app:layout_constraintTop_toBottomOf="@id/tab_bar"
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|