Github 페이지에 AppCompatActivity에서 사용하는 방법이사용법이 이미 나와있는데요.
For a working implementation of this project see the sample/ folder.
실제 사용된 예를 보시려면 sample/folder안에 있다네요.
Include one of the widgets in your view. This should usually be placed adjacent to the ViewPager it represents.
레이아웃에 해당 컴포넌트를 ViewPager에 이웃해서 배치하세요.
<com.viewpagerindicator.TitlePageIndicator
android:id="@+id/titles"
android:layout_height="wrap_content"
android:layout_width="fill_parent" />
In your onCreate method (or onCreateView for a fragment), bind the indicator to the ViewPager.
액티비티라면 onCreate 또는 프레그먼트는 onCreateView 메소드에서 ViewPager에 indicator를 바인딩해주세요.
//Set the pager with an adapter
ViewPager pager = (ViewPager)findViewById(R.id.pager);
pager.setAdapter(new TestAdapter(getSupportFragmentManager()));
//Bind the title indicator to the adapter
TitlePageIndicator titleIndicator = (TitlePageIndicator)findViewById(R.id.titles);
titleIndicator.setViewPager(pager);
님한테 필요한 Adapter만 만들어 주시면 될 것 같은데요.