Tab Layout in android/Tab activity in android Using tab layout, we can wrap multiple views in a single window and navigate through these views using tabs. Tab host, Tab widget and a frame layout are the important components used in the tab layout. In this project, we are creating three tabs named Artist, Album and Songs, and while clicking on each of these tabs, different page (means activity) will be loaded. First create a new project and add a tab host to your xml like this <TabHost xmlns:android = "http://schemas.android.com/apk/res/android" android:id = "@android:id/tabhost" android:layout_width = "fill_parent" android:layout_height = "fill_parent" > <LinearLayout android:orientation = "vertical" android:layout_width = "fill_parent" android:layout_height = "fill_parent" android:padding = "5dp" > ...
If you are a beginner , then this blog will help you to dive into the basics.