Exemple #1
0
 public void onRefreshView() {
   CacheBeans beans = GlobalRes.getInstance().getBeans();
   Type5Data type5_1 = beans.getUnlockDatas().getType5s().get(data1.getId());
   Type5Data type5_2 = beans.getUnlockDatas().getType5s().get(data2.getId());
   Type5Data type5_3 = beans.getUnlockDatas().getType5s().get(data3.getId());
   Type5Data type5_4 = beans.getUnlockDatas().getType5s().get(data4.getId());
   refreshModule(
       type5_1,
       imgLock1,
       imgStart1,
       rbStar1,
       imgModule1,
       R.drawable.icon_lessontype5_3,
       R.drawable.icon_lessontype5_3_2,
       R.drawable.icon_lessontype5_3_3);
   refreshModule(
       type5_2,
       imgLock2,
       imgStart2,
       rbStar2,
       imgModule2,
       R.drawable.icon_lessontype5_4,
       R.drawable.icon_lessontype5_4_2,
       R.drawable.icon_lessontype5_4_3);
   refreshModule(
       type5_3,
       imgLock3,
       imgStart3,
       rbStar3,
       imgModule3,
       R.drawable.icon_lessontype5_5,
       R.drawable.icon_lessontype5_5_2,
       R.drawable.icon_lessontype5_5_3);
   refreshLine(type5_1, imgLine1);
   refreshLine(type5_2, imgLine2);
   refreshLine(type5_3, imgLine3);
   refreshLine(type5_4, imgLine4);
 }
Exemple #2
0
 @Override
 public void onClick(View v) {
   switch (v.getId()) {
     case R.id.imgModule1:
       ((AtyType5s) getActivity()).startLesson(data1.getId(), data1.getName());
       break;
     case R.id.imgModule2:
       ((AtyType5s) getActivity()).startLesson(data2.getId(), data2.getName());
       break;
     case R.id.imgModule3:
       ((AtyType5s) getActivity()).startLesson(data3.getId(), data3.getName());
       break;
   }
 }