viewPager.setCurrentItem(num);
protected void onResume() { super.onResume(); Timer timer = new Timer(); timer.schedule(new TimerTask() { @Override public void run() { num++; handler.sendEmptyMessage(0); } }, 1000, 1000); }
for (int i = 0; i < indicatorList.size(); i++) { position = position % indicatorList.size(); if (i == position) { indicatorList.get(i).setSelected(true); } else { indicatorList.get(i).setSelected(false); } }