VancedManager/app/src/main/res/layout/fragment_home.xml

76 lines
2.9 KiB
XML
Raw Normal View History

2020-03-16 15:41:57 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-10-31 19:45:39 +00:00
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:bind="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
2020-10-31 19:45:39 +00:00
<data>
<import type="android.view.View" />
<variable
name="viewModel"
type="com.vanced.manager.ui.viewmodels.HomeViewModel" />
</data>
2020-11-08 12:46:17 +00:00
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
2020-10-31 19:45:39 +00:00
android:id="@+id/home_refresh"
android:layout_width="match_parent"
2020-10-31 19:45:39 +00:00
android:layout_height="match_parent"
2020-11-02 14:41:39 +00:00
bind:onRefreshListener="@{()-> viewModel.fetchData()}">
2020-04-15 13:35:15 +00:00
2020-10-31 19:45:39 +00:00
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
2020-10-31 19:45:39 +00:00
android:layout_height="match_parent"
android:fillViewport="true"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_app_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:nestedScrollingEnabled="false"
tools:itemCount="3"
tools:listitem="@layout/view_app" />
<TextView
style="@style/CardTextHeader"
android:layout_marginHorizontal="24dp"
android:layout_marginTop="12dp"
android:text="@string/useful_links" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_sponsors"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:nestedScrollingEnabled="false"
tools:itemCount="2"
tools:listitem="@layout/view_sponsor" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_links"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:nestedScrollingEnabled="false"
2020-10-31 21:10:55 +00:00
android:paddingBottom="8dp"
2020-10-31 19:45:39 +00:00
tools:itemCount="6"
tools:listitem="@layout/view_social_link" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
2020-11-08 12:46:17 +00:00
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
2020-08-26 15:18:26 +00:00
</layout>