view_homepage_tab_layout.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. xmlns:tools="http://schemas.android.com/tools">
  7. <View
  8. android:visibility="gone"
  9. android:id="@+id/view_indicator"
  10. android:layout_marginBottom="1dp"
  11. app:layout_constraintBottom_toBottomOf="@+id/tv_text"
  12. android:background="@drawable/shape_2dc7aa_to_transparent"
  13. app:layout_constraintRight_toRightOf="@+id/tv_text"
  14. app:layout_constraintLeft_toLeftOf="@+id/tv_text"
  15. android:layout_width="0dp"
  16. android:layout_height="6dp"/>
  17. <TextView
  18. tools:text="VIP定制课"
  19. app:layout_constraintRight_toRightOf="parent"
  20. app:layout_constraintBottom_toBottomOf="parent"
  21. app:layout_constraintLeft_toLeftOf="parent"
  22. app:layout_constraintTop_toTopOf="parent"
  23. android:minWidth="32dp"
  24. android:gravity="center"
  25. android:includeFontPadding="false"
  26. android:textSize="@dimen/sp_15"
  27. android:textColor="@color/color_666666"
  28. android:id="@+id/tv_text"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"/>
  31. <View
  32. app:layout_constraintRight_toRightOf="parent"
  33. app:layout_constraintLeft_toLeftOf="parent"
  34. app:layout_constraintTop_toTopOf="parent"
  35. android:layout_width="74dp"
  36. android:layout_height="1dp"/>
  37. </androidx.constraintlayout.widget.ConstraintLayout>