private void initWorkspace() { int total = TOTAL_HEAD_IMAGES_SHOW_COUNT; mDocIndicator.setTotal(total); // mDocIndicator.setVisibility(View.GONE); CellLayout cellLayout = null; for (int i = 0; i < total; i++) { cellLayout = (CellLayout) mInflater.inflate(R.layout.recommand_item, null); mWorkspace.addView(cellLayout); } }
@Override public void onUpdateCurrent(int current) { // TODO Auto-generated method stub mDocIndicator.setCurrent(current); }
@Override public void onUpdateTotalNum(int total) { // TODO Auto-generated method stub mDocIndicator.setTotal(total); }