dialog_course_tip_layout.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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="wrap_content"
  4. android:paddingBottom="20dp"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. xmlns:tools="http://schemas.android.com/tools"
  7. android:background="@drawable/bg_white_10dp"
  8. android:layout_height="wrap_content">
  9. <ImageView
  10. android:id="@+id/iv_top"
  11. app:layout_constraintTop_toTopOf="parent"
  12. app:layout_constraintLeft_toLeftOf="parent"
  13. android:src="@drawable/bg_course_tip_top"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"/>
  16. <ImageView
  17. android:id="@+id/iv_close"
  18. android:padding="13dp"
  19. app:layout_constraintRight_toRightOf="@+id/iv_top"
  20. app:layout_constraintTop_toTopOf="parent"
  21. android:src="@drawable/icon_close_dialog_32_32"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"/>
  24. <com.youth.banner.Banner
  25. app:layout_constraintRight_toRightOf="@+id/iv_top"
  26. app:layout_constraintLeft_toLeftOf="@+id/iv_top"
  27. app:layout_constraintTop_toBottomOf="@+id/iv_top"
  28. android:id="@+id/banner"
  29. android:layout_width="0dp"
  30. android:layout_height="wrap_content"
  31. app:banner_indicator_gravity="center"
  32. app:banner_indicator_height="6dp"
  33. app:banner_indicator_normal_color="@color/color_dfdfdf"
  34. app:banner_indicator_normal_width="6dp"
  35. app:banner_indicator_selected_color="@color/color_2dc7aa"
  36. app:banner_indicator_selected_width="16dp" />
  37. <TextView
  38. android:layout_marginTop="24dp"
  39. android:id="@+id/tv_confirm"
  40. android:layout_marginEnd="20dp"
  41. android:layout_marginStart="20dp"
  42. app:layout_constraintTop_toBottomOf="@+id/banner"
  43. app:layout_constraintRight_toRightOf="@+id/iv_top"
  44. app:layout_constraintLeft_toLeftOf="@+id/iv_top"
  45. tools:text="我知道了"
  46. android:gravity="center"
  47. android:textColor="@color/white"
  48. android:background="@drawable/shape_2dc7aa_8dp"
  49. android:layout_width="0dp"
  50. android:layout_height="39dp"/>
  51. </androidx.constraintlayout.widget.ConstraintLayout>