activity_comm_empty.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@color/color_f6f8f9"
  8. tools:context="com.cooleshow.usercenter.ui.activity.CommEmptyActivity">
  9. <com.cooleshow.base.widgets.ComTitleBar
  10. android:id="@+id/title_view"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. app:layout_constraintTop_toTopOf="parent" />
  14. <ImageView
  15. android:id="@+id/empty_icon"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_marginTop="@dimen/dp_35"
  19. app:layout_constraintLeft_toLeftOf="parent"
  20. app:layout_constraintRight_toRightOf="parent"
  21. app:layout_constraintTop_toBottomOf="@+id/title_view" />
  22. <TextView
  23. android:id="@+id/empty_text"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_marginTop="@dimen/dp_12"
  27. android:textColor="@color/color_999999"
  28. android:textSize="@dimen/sp_15"
  29. app:layout_constraintLeft_toLeftOf="parent"
  30. app:layout_constraintRight_toRightOf="parent"
  31. app:layout_constraintTop_toBottomOf="@+id/empty_icon"
  32. tools:text="我知道了" />
  33. <TextView
  34. android:id="@+id/empty_btn"
  35. android:layout_width="@dimen/dp_196"
  36. android:layout_height="@dimen/dp_44"
  37. android:layout_marginTop="@dimen/dp_53"
  38. android:background="@drawable/shape_click_btn"
  39. android:gravity="center"
  40. android:textColor="@color/white"
  41. android:textSize="@dimen/sp_18"
  42. app:layout_constraintLeft_toLeftOf="parent"
  43. app:layout_constraintRight_toRightOf="parent"
  44. app:layout_constraintTop_toBottomOf="@+id/empty_icon"
  45. tools:text="我知道了" />
  46. </androidx.constraintlayout.widget.ConstraintLayout>