how i can make a list on canvas in an application having more then 5 to 10 pages ? and i have different no of option(list items ) on each page and i want to print the list on different SCREEN SIZES with the condition that the list print with having the same(equal) height above the top option and below the lowest option. Thanks in advance.
Share
Canvas has a getHeight() and getWidth() method you can use to dynamically change the gui, just use these to create buttons.
for example:
item 1=
0, 0, getWidth(), getHeight() / 3
item 2=
0, getHeight() / 3, getWidth(), getHeight() / 3
item 3=
0, (getHeight() / 3) * 2, getWidth(), getHeight() / 3
These would the the coordinates for three boxes evenly taking up the whole screen.
hope this helps