Android: How to build a Tab-flow-layout with fragment collection & listview in it? -


novice android! need work out following layout of project! have tabcollection actionbar. shows

 > tab 1 -->screen 1 (contains listview json webservice, while clicking on listview cell pass parameter screen 2) -> screen 2(will initializing parameter got screen 1)  > tab 2 -->screen 3 (contains listview , few textview & button, while button action pass data screen 4) -> screen 4 (will load data got screen 3)  > tab 3 -->screen 5 (same screen 3) -> screen 6 (same screen 4) 

now, have been surfing whole google queries, & found thousand of examples & hundreds of way layout application! have choose following make work!

  took mainactivity extending fragmentactivity implements actionbar.tablistener (with viewpager included)  --> have added fragments  fragmentpageradapter     1.fragment1 (contains listview onitemclicklistener, dont know how pass data fragmenttransaction 2 & load it, need here !!)     2.fragment3 (same as)     3.fragent5 (same as)     

but , there's way fragmenttabhost .which correct way? going right direction till now, or there other ways these things! have totally lost way in ocean of google! someone, me out!! need example code (either github or blog, website, etc)


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -