ViewPager

Tutorial

Android ViewPager Tutorial

In Android, if you need to swipe from right to left or vice-versa in order to see different data, you can use a ViewPager. In order to use it, you have to implement a PagerAdapter which will generate the pages that the view shows. ViewPager’s adapters We can use one of the 3 adapters provided: […]

, , , , , , ,
Tutorial

Android ViewPager Cube Animation

After trying some libraries in order to make a cube animation for my viewPager, I realized that is pretty easy to do this. Android provides an interface called ViewPager.PageTransformer and you just have to implement its method transformPage(). Below is the code, step by step. activity_main.xml <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” tools:context=”ro.helpproject.funcode.help.MainActivity”>

, , , , ,
Tutorial

Android: Add Tabs using TabLayout

In this tutorial we will see how to add tabs to a project by using TabLayout together with ViewPager, and some other new views from the design library :) Before starting I will make summary to present the main idea of creating the tabs. xml in the xml file, because we use TabLayout together with

, , , , , , , , , , , , ,
Scroll to Top