activity_normal_user.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. tools:context=".activity.NormalUserActivity">
  8. <androidx.appcompat.widget.Toolbar
  9. android:id="@+id/toolbar"
  10. android:layout_width="0dp"
  11. android:fitsSystemWindows="true"
  12. android:layout_height="wrap_content"
  13. app:layout_constraintStart_toStartOf="parent"
  14. app:layout_constraintEnd_toEndOf="parent"
  15. app:layout_constraintTop_toTopOf="parent"
  16. android:background="@color/colorAccent"
  17. android:minHeight="?attr/actionBarSize" >
  18. <TextView
  19. android:id="@+id/title"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:layout_gravity="center"
  23. android:textSize="20sp"
  24. android:textStyle="bold"/>
  25. <TextView
  26. android:id="@+id/logout"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_gravity="end"
  30. android:textSize="14sp"
  31. android:text="退出"
  32. android:layout_marginEnd="10dp"
  33. android:textStyle="bold"/>
  34. </androidx.appcompat.widget.Toolbar>
  35. <TextView
  36. android:layout_width="wrap_content"
  37. android:layout_height="wrap_content"
  38. android:id="@+id/view_list_title"
  39. android:text="逾期量表"
  40. app:layout_constraintStart_toStartOf="parent"
  41. app:layout_constraintEnd_toEndOf="parent"
  42. app:layout_constraintTop_toBottomOf="@id/toolbar"/>
  43. <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
  44. android:layout_width="0dp"
  45. android:layout_height="0dp"
  46. android:id="@+id/swipe"
  47. app:layout_constraintStart_toStartOf="parent"
  48. app:layout_constraintEnd_toEndOf="parent"
  49. app:layout_constraintTop_toBottomOf="@id/view_list_title"
  50. app:layout_constraintBottom_toBottomOf="parent">
  51. <ListView
  52. android:id="@+id/list"
  53. android:layout_width="match_parent"
  54. android:layout_height="match_parent" />
  55. </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
  56. </androidx.constraintlayout.widget.ConstraintLayout>