Refactor RecipesFragment

This commit extracts SwipeRefreshLayout extension to a
separate file. Additionally, it refactors RecipesFragment in
order to move all the logic to the ViewModel from the View.
This commit is contained in:
Kirill Kamakin
2021-11-27 00:22:52 +03:00
parent 897698ab02
commit cc5c9edb1f
5 changed files with 84 additions and 59 deletions

View File

@@ -19,6 +19,7 @@
android:id="@+id/recipes"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/view_holder_recipe" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>