personal_center_activity.xml 3.51 KB
<?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"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/person_bg"
    android:orientation="vertical"
    tools:context="com.studymachine.www.ui.activity.PersonalCenterActivity">

    <com.hjq.bar.TitleBar
        style="@style/ActionBarStyle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:translationZ="@dimen/dp_2"
        app:barStyle="transparent"
        app:layout_constraintTop_toTopOf="parent"
        app:leftIconWidth="@dimen/dp_22"
        app:title="" />

    <com.hjq.widget.layout.NoScrollViewPager
        android:id="@+id/vp_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <LinearLayout
        android:id="@+id/shop_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="@dimen/dp_35"
        android:layout_marginTop="@dimen/dp_95"
        android:gravity="center"
        android:orientation="vertical"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <androidx.appcompat.widget.AppCompatImageView
            android:layout_width="@dimen/dp_21"
            android:layout_height="@dimen/dp_21"
            android:src="@drawable/person_shop" />

        <androidx.appcompat.widget.AppCompatTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/dp_5"
            android:text="@string/personal_center_shop"
            android:textColor="@color/white70"
            android:textSize="@dimen/sp_8" />

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/dp_7">

            <androidx.appcompat.widget.AppCompatTextView
                android:id="@+id/tv_integral"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="5555"
                android:textColor="@color/white"
                android:textSize="@dimen/sp_11" />

            <androidx.appcompat.widget.AppCompatTextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/personal_center_unit"
                android:textColor="@color/white70"
                android:textSize="@dimen/sp_8" />

        </LinearLayout>

    </LinearLayout>

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/rv_list"
        android:layout_width="wrap_content"
        android:layout_height="0px"
        android:layout_marginTop="@dimen/dp_20"
        android:layout_marginBottom="@dimen/dp_80"
        android:orientation="vertical"
        app:layoutManager="com.google.android.flexbox.FlexboxLayoutManager"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="@+id/shop_view"
        app:layout_constraintRight_toRightOf="@+id/shop_view"
        app:layout_constraintTop_toBottomOf="@+id/shop_view"
        tools:listitem="@layout/personal_select_item" />


</androidx.constraintlayout.widget.ConstraintLayout>