Android | Techbirds | Page 4
Requirements To implement a Tabs & ViewPager, using fragments on devices running Android 2.1 or higher, you’ll need to include the Android Compatibility library. In my example, I’m using Compatibility library v4. Step-by-step Define the Tab ViewPager layout Define the PagerAdapter Define the Tab FragmentActivity The Code Complete Source code The Tab ViewPager layout The Tab ViewPager layout (tabs_viewpager_layout.xml) declares a TabHost and