I know this may sound like a terrible question to ask but I have been 
researching as much as I could to figure this out. I have an application 
that requires a view pager to scroll horizontally to display different 
views. Within each view, it needs functionality, for one view it could be 
just pressing a button, another view is required to download data from a 
server (for example, retrieving the latest Twitter feed) as well as other 
functionality. The main point is that within the View Pager, each view 
requires functionality. 

My original idea was to follow this tutorial: 

http://mobile.tutsplus.com/tutorials/android/android-user-interface-design-horizontal-view-paging/

However, this is just providing views which have no interaction. I have 
managed to implement this and add my layouts, however this is only solving 
half of the problem. It shows how to add basic operations within a comment 
such as a single button. I want each view to have its own activity which is 
capable of doing its own unique thing.

I have pretty much taken the code provided in the example, and made changes 
such as the layouts being displayed.

I have separate activities for each layout added to the ViewPager but I am 
guessing that these activities cannot be added into the ViewPager instead 
of just the layouts.

I have read something about fragments, but I am not sure whether that's 
compatible with API level 8, apparently this is targeted at Honeycomb and 
Ice Cream Sandwich.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to