Sunday, 11 August 2013

Inflate layout on page change in viewpager

Inflate layout on page change in viewpager

In my app, I have a view pager with two tabs and I have two layouts and I
want to inflate and show layout1.xml inside the tab when the user switches
to tab #1 and inflate and show layout2.xml inside the tab when user
switches to tab #2, but I cannot find how to do it.
Any help will be very much appriciated.

No comments:

Post a Comment