activity_home.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:id="@+id/main_content"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:visibility="invisible"
  8. tools:context=".activities.HomeActivity">
  9. <com.google.android.material.appbar.AppBarLayout
  10. android:id="@+id/appbar"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. app:layout_constraintEnd_toEndOf="parent"
  14. app:layout_constraintStart_toStartOf="parent"
  15. app:layout_constraintTop_toTopOf="parent">
  16. <FrameLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content">
  19. <include layout="@layout/toolbar_home" />
  20. <include layout="@layout/connection_indicator" />
  21. </FrameLayout>
  22. <ch.threema.app.ui.OngoingCallNoticeView
  23. android:id="@+id/ongoing_call_notice"
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:animateLayoutChanges="true"
  27. android:visibility="gone" />
  28. <include layout="@layout/notice_sms_verification" />
  29. </com.google.android.material.appbar.AppBarLayout>
  30. <include
  31. layout="@layout/content_home"
  32. android:layout_width="0dp"
  33. android:layout_height="0dp"
  34. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  35. app:layout_constraintBottom_toTopOf="@+id/bottom_navigation"
  36. app:layout_constraintEnd_toEndOf="parent"
  37. app:layout_constraintStart_toStartOf="parent"
  38. app:layout_constraintTop_toBottomOf="@+id/appbar" />
  39. <com.google.android.material.bottomnavigation.BottomNavigationView
  40. android:id="@+id/bottom_navigation"
  41. style="@style/Threema.BottomNavigationView"
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:layout_gravity="bottom"
  45. app:layout_constraintBottom_toBottomOf="parent"
  46. app:layout_constraintLeft_toLeftOf="parent"
  47. app:layout_constraintRight_toRightOf="parent"
  48. app:menu="@menu/activity_home_bottom_navigation" />
  49. </androidx.constraintlayout.widget.ConstraintLayout>