public void setQueueList() { int count = flipperViewList.size(); queueList = new int[count]; int index = 0; for (FlipperView fv : flipperViewList) { queueList[index] = fv.getStatus(); index++; } }
public void setFlipperViewList(Bundle savedInstanceState) { if (savedInstanceState == null) { int count = magazines.length; for (int i = 0; i < count; i++) { String magazineURL = magazines[i]; int imgId = getResources().getIdentifier(magazineURL, "drawable", "com.example.training1"); FlipperView fv1 = new FlipperView(getApplicationContext(), null, null, imgId); fv1.setImage(imgId); flipperViewList.add(fv1); } } else { int count = magazines.length; for (int i = 0; i < count; i++) { String magazineURL = magazines[i]; int imgId = getResources().getIdentifier(magazineURL, "drawable", "com.example.training1"); FlipperView fv1 = new FlipperView(getApplicationContext(), null, null, imgId); if (queueList[i] == 1) fv1.setImage(imgId); flipperViewList.add(fv1); } } }