Author Topic: How can I make a drum roll list?  (Read 3450 times)

Balax

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 1
    • View Profile
How can I make a drum roll list?
« on: October 20, 2014, 11:00:42 PM »
I want to make a drum roll list.
I think I should use UIScrollView and UIGrid To get that!

The idea is that I don't want to load every object in data list
when I have 500 data for example and add every data to list
even it is invisible!

Whenever the top row is get invisible, I will took off that row and
add it to the bottom of the list and the same idea for bottom row!

How can I?
« Last Edit: October 20, 2014, 11:44:32 PM by Balax »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How can I make a drum roll list?
« Reply #1 on: October 20, 2014, 11:53:54 PM »
Have a look at the endless scroll view example that comes with NGUI. That should get you started.

Balax

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: How can I make a drum roll list?
« Reply #2 on: October 21, 2014, 03:34:52 AM »
>Aren
Thanks! Now I figured out what to do!

For now , updating the topmost row or bottom most row when
OnInitializeItem is called! I check the row is topmost or bottom most
inside OnInitializeItem! It is ok when I drag slowly but when momentum
occurs, [i.e OnInitializeItem is called more than one time in one frame]
I can't control updating! Is there a way to limit OnInitializeItem get Called
when there is no OnInitializeItem doing in same frame?
« Last Edit: October 21, 2014, 10:39:57 PM by Balax »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How can I make a drum roll list?
« Reply #3 on: October 22, 2014, 04:59:05 AM »
You have the code. You can edit it to suit your needs. UIWrapContent is meant to be an example you could edit.