viewpager

Android ViewPager with Mediaplayer

In the previous article, we have talked about ViewPager to create swipe views in Android application in greater detail. In this article, we will talk about how to add buttons in different pages of viewPager, how to play and stop song on button click using MediaPlayer and also how to work with Mediaplayer on page scrolled. […]

Android ViewPager with Mediaplayer Read More »

Android Sliding Views Using ViewPager With PagerAdapter,FragmentPagerAdapter

In this tutorial we are going to learn about how to create swipe views in android application. We can create swipe view in android application using the ViewPager widget which is available in the support library. ViewPager is a layout widget which is capable of holding many child views and each child view represent a

Android Sliding Views Using ViewPager With PagerAdapter,FragmentPagerAdapter Read More »

Android ViewPager Example To Create Sliding Screens

ViewPager Android ViewPager widget is found in the support library and it allows the user to swipe left or right to see an entirely new screen. Today we’re implementing a ViewPager by using Fragment and FragmentPagerAdapter. Get GITHUB code from Here. Creating New Project 1.In Android Studio, go to File ⇒ New Project and fill all the details required to

Android ViewPager Example To Create Sliding Screens Read More »

Android Working With Tabs

Tabs Tabs make it easy to explore and switch between different views. TabLayout TabLayout provides a horizontal layout to display tabs. ViewPager Integration If you’re using a ViewPager together with this layout, you can call setupWithViewPager(ViewPager) to link the two together. This layout will be automatically populated from the PagerAdapter’s page titles. Get GITHUB code from Here. Creating New Project

Android Working With Tabs Read More »