2023-02-06 13:44:27 -06:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2023-07-08 17:11:55 -06:00
|
|
|
<FrameLayout xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2023-07-08 02:17:19 -06:00
|
|
|
android:id="@+id/main_container"
|
2023-02-06 13:44:27 -06:00
|
|
|
android:layout_width="match_parent"
|
2023-07-08 02:17:19 -06:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
|
<androidx.drawerlayout.widget.DrawerLayout
|
|
|
|
|
android:id="@+id/drawer_layout"
|
2023-02-06 13:44:27 -06:00
|
|
|
android:layout_width="match_parent"
|
2023-07-08 02:17:19 -06:00
|
|
|
android:layout_height="match_parent">
|
2023-02-06 13:44:27 -06:00
|
|
|
|
2023-07-08 02:17:19 -06:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
2023-02-06 13:44:27 -06:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2023-07-15 20:58:57 -06:00
|
|
|
tools:context=".home.FeedFragment">
|
2023-02-06 13:44:27 -06:00
|
|
|
|
2023-02-11 23:41:23 -06:00
|
|
|
|
2023-07-08 02:17:19 -06:00
|
|
|
<FrameLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2023-07-08 17:11:55 -06:00
|
|
|
android:layout_marginBottom="0dp">
|
2023-02-11 23:41:23 -06:00
|
|
|
|
2023-07-08 02:17:19 -06:00
|
|
|
<LinearLayout
|
2023-02-11 23:41:23 -06:00
|
|
|
android:layout_width="match_parent"
|
2023-07-08 02:17:19 -06:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical">
|
2023-07-08 17:11:55 -06:00
|
|
|
|
2023-07-08 02:17:19 -06:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:id="@+id/topAppBar_layout"
|
2023-02-11 23:41:23 -06:00
|
|
|
android:layout_width="match_parent"
|
2023-07-15 20:58:57 -06:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:liftOnScroll="true">
|
2023-02-11 23:41:23 -06:00
|
|
|
|
2023-07-08 02:17:19 -06:00
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
|
|
|
android:id="@+id/topAppBar"
|
2023-02-11 23:41:23 -06:00
|
|
|
android:layout_width="match_parent"
|
2023-07-08 02:17:19 -06:00
|
|
|
android:layout_height="?attr/actionBarSize"
|
2023-07-08 17:11:55 -06:00
|
|
|
android:theme="@style/Theme.Isolaatti"
|
2023-07-08 02:17:19 -06:00
|
|
|
app:navigationIcon="@drawable/baseline_menu_24"
|
2023-07-08 17:11:55 -06:00
|
|
|
app:navigationIconTint="@color/on_surface"
|
2023-07-15 20:58:57 -06:00
|
|
|
app:menu="@menu/new_menu"
|
2023-07-08 17:11:55 -06:00
|
|
|
app:title="@string/app_name"
|
|
|
|
|
app:titleCentered="true" />
|
2023-02-06 13:44:27 -06:00
|
|
|
|
|
|
|
|
|
2023-07-08 02:17:19 -06:00
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2023-07-08 17:11:55 -06:00
|
|
|
|
2023-07-15 20:58:57 -06:00
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
2023-07-17 00:08:36 -06:00
|
|
|
android:id="@+id/swipe_to_refresh"
|
2023-07-08 02:17:19 -06:00
|
|
|
android:layout_width="match_parent"
|
2023-07-15 20:58:57 -06:00
|
|
|
android:layout_height="match_parent" >
|
2023-07-17 00:08:36 -06:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2023-07-15 20:58:57 -06:00
|
|
|
android:layout_width="match_parent"
|
2023-07-17 00:08:36 -06:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/feed_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/no_more_content_to_show_text_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textAlignment="center"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:text="@string/there_is_no_more_content_to_show"/>
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/refresh_button"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
style="@style/Widget.Material3.Button.TextButton"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:src="@drawable/baseline_refresh_24"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/load_more_button"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
style="@style/Widget.Material3.Button.TextButton"
|
|
|
|
|
android:text="@string/load_more"/>
|
|
|
|
|
<ProgressBar
|
|
|
|
|
android:id="@+id/progress_bar_loading"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
2023-07-15 20:58:57 -06:00
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
2023-07-08 02:17:19 -06:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.navigation.NavigationView
|
|
|
|
|
android:id="@+id/home_drawer"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_gravity="start"
|
|
|
|
|
app:headerLayout="@layout/header_drawer_home"
|
|
|
|
|
app:menu="@menu/home_drawer_menu" />
|
2023-02-06 13:44:27 -06:00
|
|
|
|
|
|
|
|
|
2023-07-08 02:17:19 -06:00
|
|
|
</androidx.drawerlayout.widget.DrawerLayout>
|
|
|
|
|
</FrameLayout>
|