Ejemplo n.º 1
0
        @Override
        public void onClick(View v) {

          System.out.println("current seleted :" + daySelect.getCurrentItem());
          if (onSelectedListener != null) {

            int selectedDay = 1;
            if (daySelect.getCurrentItem() == 0) {
              selectedDay = 1;
            } else if (daySelect.getCurrentItem() == 1) {
              selectedDay = 0;
            } else if (daySelect.getCurrentItem() < dayArr.size()) {
              selectedDay = Integer.valueOf(dayArr.get(daySelect.getCurrentItem()));
            }
            onSelectedListener.doneSelected(selectedDay);
          }
          dismiss();
        }
Ejemplo n.º 2
0
 public void goToTraining(int id) {
   mCallback.onTrainingSelected(id);
 }