A question about Layout in android Kotlin

Asked

Viewed 28 times

-2

Good morning, I am developing a delivery app and wanted to make a cool layout and for that I looked at the layouts of the app that already exist and saw that a type of screen for the store products that I found very pleasing to the eyes and also functional but do not know how to assemble it know which components exist on the screen but do not know how to give proper functionality to it, I’ll post a photo to make my question clearer.

Esta seria a tela que quero fazer, montei ela do Adobe XD

I built the screen in Adobe XD based on the screens I saw I know I need a View, an image view and also a tabview for the categories but when I scroll down the screen everything on top of Tab View would go up and the View tab would be fixed at the top so that the user could change category without having to scroll up, I do not know if I can be clear in my question, but I would just like to be given a light to the problem, if something has become clear I can try to clarify.

2 answers

0


If you are interested in the problem, I found a solution the name is Scrolling Header with Tabs, which is to fix the tab view when you scroll, in the end I did not do with tab layout I could not add the tables on top without adding a Fragment, so I did Recycler view and used Nasted Scroll view and added that line to the elements that I wanted to disappear

app:layout_scrollFlags="scroll|enterAlways|snap"

0

You can put all the content you want to "scroll" into a single recyclerview, and put that same into a Nestedscroolview, thus it will scroll only the specific Content.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.