I have read your question and test sample example.you are right It can't move when we click on icons.
so you need to edit library project ---> IconPageIndicator.java
just replace the below method
public void notifyDataSetChanged()
{
mIconsLayout.removeAllViews();
IconPagerAdapter iconAdapter = (IconPagerAdapter) mViewPager.getAdapter();
int count = iconAdapter.getCount();
for (int i = 0; i < count; i++) {
ImageView view = new ImageView(getContext(), null, R.attr.vpiIconPageIndicatorStyle);
view.setImageResource(iconAdapter.getIconResId(i));
view.setTag(""+i);
view.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
int viewPosition = Integer.parseInt(v.getTag().toString());
mViewPager.setCurrentItem(viewPosition);
}
});
mIconsLayout.addView(view);
}
if (mSelectedIndex > count) {
mSelectedIndex = count - 1;
}
setCurrentItem(mSelectedIndex);
requestLayout();
}
clean the library project and rebuild it.also don't forget to clean and rebuild your project.I hope it will work.