activity_main.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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:id="@+id/container"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:orientation="vertical"
  9. tools:context=".feature.MainActivity">
  10. <include layout="@layout/default_app_bar" />
  11. <android.support.v4.widget.SwipeRefreshLayout
  12. android:id="@+id/swipeRefresh"
  13. android:layout_width="match_parent"
  14. android:layout_height="0dp"
  15. android:layout_weight="1">
  16. <FrameLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent">
  19. <include
  20. layout="@layout/books_page"
  21. android:visibility="gone"
  22. tools:visibility="visible" />
  23. <include
  24. layout="@layout/users_page"
  25. android:visibility="gone" />
  26. <include
  27. layout="@layout/notes_page"
  28. android:visibility="gone" />
  29. <ProgressBar
  30. android:id="@+id/booksProgressBar"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:layout_gravity="center"
  34. android:alpha="0"
  35. tools:alpha="1" />
  36. </FrameLayout>
  37. </android.support.v4.widget.SwipeRefreshLayout>
  38. <android.support.design.widget.BottomNavigationView
  39. android:id="@+id/bottomNavigation"
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:layout_gravity="bottom"
  43. android:background="?attr/bottom_navigation_color"
  44. android:visibility="gone"
  45. app:menu="@menu/navigation" />
  46. </LinearLayout>