Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email

74 lines
3.2 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  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=".ActivityView">
  8. <TextView
  9. android:id="@+id/tvNoEmail"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:text="@string/title_no_messages"
  13. android:textAppearance="@style/TextAppearance.AppCompat.Medium"
  14. app:layout_constraintBottom_toBottomOf="parent"
  15. app:layout_constraintEnd_toEndOf="parent"
  16. app:layout_constraintStart_toStartOf="parent"
  17. app:layout_constraintTop_toTopOf="parent" />
  18. <androidx.recyclerview.widget.RecyclerView
  19. android:id="@+id/rvFolder"
  20. android:layout_width="0dp"
  21. android:layout_height="0dp"
  22. android:scrollbarStyle="outsideOverlay"
  23. android:scrollbars="vertical"
  24. app:layout_constraintBottom_toTopOf="@+id/bottom_navigation"
  25. app:layout_constraintEnd_toEndOf="parent"
  26. app:layout_constraintStart_toStartOf="parent"
  27. app:layout_constraintTop_toTopOf="parent" />
  28. <com.google.android.material.bottomnavigation.BottomNavigationView
  29. android:id="@+id/bottom_navigation"
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:layout_marginTop="3dp"
  33. android:background="@color/colorPrimary"
  34. android:visibility="gone"
  35. app:itemIconTint="@color/bottomnav_background"
  36. app:itemTextColor="@color/bottomnav_background"
  37. app:labelVisibilityMode="labeled"
  38. app:layout_constraintBottom_toBottomOf="parent"
  39. app:layout_constraintEnd_toEndOf="parent"
  40. app:layout_constraintStart_toStartOf="parent"
  41. app:menu="@menu/action_list_bottom" />
  42. <ProgressBar
  43. android:id="@+id/pbWait"
  44. style="@style/Base.Widget.AppCompat.ProgressBar"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:indeterminate="true"
  48. app:layout_constraintBottom_toBottomOf="parent"
  49. app:layout_constraintEnd_toEndOf="parent"
  50. app:layout_constraintStart_toStartOf="parent"
  51. app:layout_constraintTop_toTopOf="parent" />
  52. <com.google.android.material.floatingactionbutton.FloatingActionButton
  53. android:id="@+id/fab"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:layout_gravity="end|bottom"
  57. android:layout_margin="16dp"
  58. android:src="@drawable/baseline_edit_24"
  59. android:tint="@color/colorActionForeground"
  60. app:backgroundTint="?attr/colorAccent"
  61. app:layout_constraintBottom_toBottomOf="parent"
  62. app:layout_constraintEnd_toEndOf="parent" />
  63. <androidx.constraintlayout.widget.Group
  64. android:id="@+id/grpReady"
  65. android:layout_width="0dp"
  66. android:layout_height="0dp"
  67. app:constraint_referenced_ids="rvFolder" />
  68. </androidx.constraintlayout.widget.ConstraintLayout>