Android ViewPagerIndicator not styling correctly

Zorlin

New Member
I checked out Android-ViewPagerIndicator and wanted to get my look similar to one of the sample ones seen within the sample application.But when trying to implement the \[code\]TabPageIndicator\[/code\], I am getting the following instead:
cGExk.png
Instead of what I want (As shown within the sample application):
5TqXI.png
Now I understand that there are some styles added here, but even the basic tab highlighting on touch doesn't even happen. Furthermore my implementation should give the default view but as you can see that does'nt look like anything as the defaults.(visit the link above to see defaults).My question is, How can I get my pager looking similar to the above? and also how do I use the styles supplied within ?Any help will be great, Current code:XML:\[code\]<com.viewpagerindicator.TabPageIndicator android:id="@+id/view_pager_title" android:layout_width="fill_parent" android:layout_height="wrap_content" /> <android.support.v4.view.ViewPager android:id="@+id/view_pager" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/view_pager_title" > </android.support.v4.view.ViewPager>\[/code\]Activity:\[code\]TabPageIndicator tb = (TabPageIndicator)findViewById(R.id.view_pager_title); tb.setViewPager(mPager);\[/code\]
 
Back
Top