Tag: tab
-
How to restore the state of a WebView in a layout “Tabs + Swipe” with ViewPager and FragmentPagerAdapter
In the post Tabs and swipe views Szymon asks how to implement a WebView in order to preserve its state moving from one tab to another in a similar way as explained in How to save the state of a WebView inside a Fragment of an Action Bar.
-
Tabs and swipe views
In the post Tab Layout in Android with ActionBar and Fragment I explain how to implement tabs and in the post Swipe views I explain how to implement the swipe views or scrolling tabs using the ViewPager of the Compatibility Package. In this post I explain how to implement 3 tabs that look like those…
-
Swipe views
In a previous post I implemented a layout with 2 tabs using an action bar and fragments; the disadvantage of this layout is that dragging horizzontally the views in a similar way to Google Play would be very natural for the user. In Horizontal View Swiping with ViewPager you can see how to get this…
-
Customizing the labels of an ActionBar
In the post Tab Layout in Android with ActionBar and Fragment I wrote an example of using an ActionBar whose labels are shown in uppercase even if you use the statement: actionBar.newTab (). setText (“my string”); where “my string” is lowercase. In this article I show how to customize the labels in lowercase but it…
-
Tab Layout in Android
This post is an example of implementing a tab layout in Android using a TabActivity class.The TabActivity class is deprecated since version 3.0 Honeycomb, then you should use ActionBar as I’ll write in a next post.