Files
yusheng-android/MainModule/src/main/res/layout/activity_user_family.xml
2025-11-28 09:13:08 +08:00

67 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<layout 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:id="@+id/main"
tools:context=".activity.user.activity.UserFamilyActivity">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- 背景渐变 -->
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@mipmap/singer_bj"
android:elevation="-1dp" />
<!-- 顶部标题栏 -->
<com.xscm.moduleutil.widget.CustomTopBar
android:id="@+id/top_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.4" />
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_r99_2b2482"
android:backgroundTint="#33000000"
android:layout_marginHorizontal="@dimen/dp_64"
app:layout_constraintTop_toBottomOf="@id/guideline"
app:tabGravity="fill"
app:tabIndicatorColor="@color/transparent"
app:tabIndicatorFullWidth="false"
app:tabIndicatorHeight="0dp"
app:tabMaxWidth="0dp"
app:tabMinWidth="0dp"
app:tabMode="fixed"
app:tabRippleColor="@color/transparent"
app:tabSelectedTextColor="@color/black"
app:tabTextColor="@color/white"
app:tabPaddingStart="0dp"
app:tabPaddingEnd="0dp"
android:paddingLeft="0dp"
android:paddingRight="0dp" />
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginTop="@dimen/dp_12"
app:layout_constraintTop_toBottomOf="@id/tabLayout"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>