I have to load three layouts inside view page indicator.The three activity’s are dynamic.They load contents from web services and also has grid view which gets its contents dynamically loaded.Is there any method to load activity inside view page indicator.I have used JakeWhartons view page indicator.
I have to load three layouts inside view page indicator.The three activity’s are dynamic.They
Share
Since You are using view Pager you should make use of Fragments to get your need
Hope this would hep you
Edit:
Th Logic i follow is
MainActivity extends FragmentActivitythen in the main activity i will set custom
FragmentPagerAdapterforViewPagereg:
ViewPagerAdapter extends FragmentPagerAdapterThen as you say for each category ( FEATURED,CATEGORIES ,TOP PAID ,TOP FREE )
I will create fragments .
But i think you need to use one Fragment for all categories .AFAIK i can’t answer your need now .but i will figure to sort out
But i want to ask something why don’t you try to switch case on the string that you selected