Sticky Component inside scrollview

后端 未结 5 446
逝去的感伤
逝去的感伤 2021-01-30 11:03

I\'m trying to build a a sticky component like this app

http://www.screencapture.ru/file/E88F08Fc

Deals, Products, Events tabs/segmentControl are actually start

5条回答
  •  萌比男神i
    2021-01-30 11:55

    This is very easy you just need to know the index component that you want it to sticky during scrolling inside a scrollview component. Here is an example:

     
         Hello1
         Hello2
         Hello3
     
    

    So when scrolling Hello1 text will sticky to the top of the ScrollView

    Good Luck

提交回复
热议问题