Viewpager with tabs android

view story

http://stackoverflow.com – I want to provide tab navigation with swipe facility. For that i have tried THIS. Link which shows tabs with viewpager. The class TestFragment.java is adding static views and class can be found at this link : Here But i want to add dynamic views.Is it possible ? Please suggest how to implement it ? Thanks. (HowTos)