I’m using Viewpager and the Circle and Title view pager from JakeWharton The viewpager with the circle indicator is working fine, but while using the view pager with both circle and title indicator both indicators are not working. Here is a screenshow of the issue:
Here is my code:
adapter = new ContractsPagerAdapter(getActivity(), topContracts, selected); pager.setAdapter(adapter); indicator.setViewPager(pager); titleIndicator.setTextColor(getResources().getColor(R.color.white)); titleIndicator.setViewPager(pager);
Hi you can do it logically. I have implemented it using ViewPager and frame layout. Frame layout to show the indictor. Indicator is basically two image for off and on. You can download the complete code and change accordingly. http://javaant.com/viewpager-with-circle-indicator-in-android/#.VpdtjMB943g Hope this will help you.