In this post we are going to learn about how to integrate the android tab view with the fragments using ViewPager and ActionBar class. For displaying the tabs on the top of the screen you need to interact with the android action bar, this is because the tab views is connected with the action bar. Ads by Google In this example application we make three tabs called "java", "php" and ".Net" and there are three seperate fragement view for each of these tabs. First you need to add the ViewPager into the activity_main.xml file. <android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="match_parent" > </android.support.v4.view.ViewPager> Now create three layout files for the fragments. 1. java_layout.xml <?xml version="1.0" encod
Computer Programming Video Tutorials
Good tutorial, I was surfing on net for similar kind of window but couldn't find any helpful video. Your video was really helpful for me. Also if you can make a video tutorial on customization on action bar would be great help for beginners. As a beginner biggest challenge while making the android applications is to get the "Great Looking UI for the application". On net I haven't come across any tutorials which guides on how to customize the apps on android.
ReplyDelete