You can build your own way of putting together the menu items by creating a class that extends BaseMenuAnimator.
The method that sets the positions of the menu items is prepareAnimations(..)
Look at DirectMenuAnimator to get an idea of how to build your own. All you have to do is create an algorithm that places all of your menu buttons with a for loop.
pseudo code:
for each button in button list
x = previous button x + linespacing + button width
y = previous button y
if ( x < max width)
x = 0
y = previous button y + line spacing + button height
That's pretty much the jist of it.
Check out this menu animator I built tonight that lets you chose the top-left position of the menu
Tidak ada komentar:
Posting Komentar