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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user