java - android Bookview -


i'd create works book (contents displayed until fills page, , exceeding contents displayed in next page), view android. extended framelayout, added listview , linear layout 2 buttons , text (for page number) on constructor.

if text, can draw using ondraw (instead of list), text bounds , distribute number of texts on pages , show ones associated current page.

but i'd contents anything, decided use listview instead. how know how space contents occupy add new contents? don't mind if have wait call. can assume know type of contents have on creation or new content adding.

example 1: have 10 icons , 10 textviews. line1: icon1 text1 line2: icon2 text2 ... line10: icon10 text10

imagine each page can fit 4 lines of icon/text. first page has 4 lines, second page has 4 lines , third (last) page has 2 lines.

this have now...: book example

i must able add content on fly (as adapter or function, don't care).

thank much


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -