You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the lectures we moved to using Fragments instead of Activities to represent our screens. We also integrated Navigation Component to easily navigate among the screens. You need to apply to same transformation for the Signup screen you implemented last week.
Also, we have seen how to implement a RecyclerView to show a grid of producrs. You need to apply this knowledge to come up with the implementation of Related products section in ProductDetail screen.
Todo
Create SignupFragment and move logic from SignupActivity into there, deleting SignupActivity.
Add SignupFragment to the nav_graph.xml adding necessary actions.
Add a function fun relatedProducts(productId: Int): List<Product> into ProductStore which returns arbitrary (random or any logic) list of related products
Add the Related Products section into ProductDetailFragment which gets data from ProductStore and displays it in a horizontal RecyclerView.
Add a click listener to the related products which would navigate user to ProductDetailFragment for the clicked product.
The text was updated successfully, but these errors were encountered:
Background
In the lectures we moved to using Fragments instead of Activities to represent our screens. We also integrated Navigation Component to easily navigate among the screens. You need to apply to same transformation for the Signup screen you implemented last week.
Also, we have seen how to implement a RecyclerView to show a grid of producrs. You need to apply this knowledge to come up with the implementation of
Related products
section in ProductDetail screen.Todo
fun relatedProducts(productId: Int): List<Product>
into ProductStore which returns arbitrary (random or any logic) list of related productsThe text was updated successfully, but these errors were encountered: