Page 367 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 367

rullet  =  (Button)  v.findViewById(R.id.rullet);
                       rythm.setOnTouchListener(this);
                       diesie.setOnTouchListener(this);

                       slot.setOnTouchListener(this);
                       rullet.setOnTouchListener(this);
                       return  v;
                 }


                  @Override
                  public  boolean  onTouch(View  arg0,  MotionEvent  event){
                       int  action  =  event.getAction();
                       if(action  ==  MotionEvent.ACTION_DOWN)  {
                             if  (arg0  ==  rythm)  ;
                             else  if  (arg0  ==  diesie)  ;
                             else  if  (arg0  ==  slot);
                             else  if  (arg0  ==  rullet);
                       }

                       if(action  ==  MotionEvent.ACTION_UP){
                             if  (arg0  ==  rythm)
                            {
                                 Intent  intentrythm  =  new  Intent(getActivity(),  Activity_rythm.class);
                                 startActivity(intentrythm);
                            }
                             else  if  (arg0  ==  diesie)
                            {
                                 Intent  intentdiesie =  new  Intent(getActivity(),  Activity_diesie.class);
                                 startActivity(intentdiesie);
                            }
                             else  if  (arg0  ==  slot)
                            {
                                 Intent  intentslot =  new  Intent(getActivity(),  Activity_slot.class);
                                 startActivity(intentslot);
                            }
                             else  if  (arg0  ==  rullet)

                            {
                                 Intent  intentrullet =  new  Intent(getActivity(),  Activity_rullet.class);
                                 startActivity(intentrullet);
                            }
                       }
                       return  true;



                                                         -  360  -
   362   363   364   365   366   367   368   369   370   371   372