RakeshAndroid/viewpager
Public repository.
Discovered public repositories for RakeshAndroid in the GitHub catalog.
Public repository.
Just Import and Run this Project .In the First Indicator Page I've set a TextView and add ed an Action (If u click that textView(Risk)).In other two Pages I just placed the textview but didn't not set any action . The Views added and got its functionality in MypageAdapter.java(under the package "com.example.viewpager") ,in the Switch case (Here I got 3 views from my layout and added function in page1 only). Instead of the textViews you can add your ownviews either by your xml or Java file. NOTE : As Your Requirement is Circle Page Indicator .I've set a Circle Page Indicator.you can change that to Icon Page Indicator or LinePageIndicator or TitlePageIndicator or UnderlinePageIndicator(All classes are in the package com.rakesh.view) by doing following two things .. 1. Replace CirclePageIndicator Class with Icon Page Indicator or LinePageIndicator or TitlePageIndicator or UnderlinePageIndicator class in MainActivity.java Ex: change CirclePageIndicator cri= (CirclePageIndicator)findViewById( R.id.indicator); line to LinePageIndicator cri= (LinePageIndicator)findViewById( R.id.indicator); 2.Replace First child of LinearLayout in activity_main.xml with CirclePageIndicator with Icon Page Indicator or LinePageIndicator or TitlePageIndicator or UnderlinePageIndicator . example to get LinePageIndicator. Change <com.rakesh.view.CirclePageIndicator android:layout_marginTop="20dp" android:id="@+id/indicator" android:layout_width="fill_parent" android:layout_height="wrap_content" /> tag to <com.rakesh.view.LinePageIndicator android:layout_marginTop="20dp" android:id="@+id/indicator" android:layout_width="fill_parent" android:layout_height="wrap_content" />