Skip to main content

Posts

Showing posts from October, 2014

TabView With Andoid Programming

ViewPager and Fragments Before getting into this tutorial it is suggested to have knowledge on  Fragments  and  ViewPager  as these two are main concepts used here. Unfortunately I haven’t covered about fragements and viewpager on androidhive  Layout Overview Checkout the following pic which explains the complete overview of layout architecture. Basically we are using  ViewPager  as main layout and for individual pager views we use  Fragments . The tabs are part of Action Bar. Creating new Project Even though you are not familiar with ViewPager or Fragments, don’t worry. You will get an idea about what those are and how to use them once you are done through this article. So let’s start by creating a new project. 1 . Create a new project in Eclipse from  File ⇒ New ⇒ Android ⇒ Application Project . While creating the project select the app theme which has Action Bar as shown in the below image. 2 . As we are going to use Fragments,  extend  your main activity from