스위치 케이스 문으로 버튼을 입력하면 사라지고 나타나고 사라지고 나타나고를 하는 프로그램인데....

 

바로 맨~ 마지막에 있는 VISIBLE로 가버리네요 ㅠㅠ

 

어떻게 방법이 없을까요??ㅠㅠ

 

 

switch(v.getId()) {

   case R.id.obutton:

        
         try {

               Thread.sleep(200);

         } catch (InterruptedException e) { }
 
         mPage=findViewById(R.id.l13);
         mPage.setVisibility(View.GONE);
       mPage=findViewById(R.id.l23);
         mPage.setVisibility(View.VISIBLE);
       mPage=findViewById(R.id.obutton);
         mPage.setVisibility(View.GONE);
       mPage=findViewById(R.id.xButton01);
         mPage.setVisibility(View.GONE);
       mPage=findViewById(R.id.xButton02);
         mPage.setVisibility(View.GONE);
       mPage=findViewById(R.id.xButton03);
         mPage.setVisibility(View.GONE);
       mPage=findViewById(R.id.xButton04);
         mPage.setVisibility(View.GONE);
       mPage=findViewById(R.id.xButton05);
         mPage.setVisibility(View.GONE);
       mPage=findViewById(R.id.xButton06);
         mPage.setVisibility(View.GONE);
       mPage=findViewById(R.id.xButton07);
         mPage.setVisibility(View.GONE);
       mPage=findViewById(R.id.xButton08);
         mPage.setVisibility(View.GONE);


         try {

               Thread.sleep(200);

         } catch (InterruptedException e) { }
 
          mPage=findViewById(R.id.l23);
         mPage.setVisibility(View.GONE);
          mPage=findViewById(R.id.l22);
         mPage.setVisibility(View.VISIBLE);
         
         
         try {

               Thread.sleep(200);

         } catch (InterruptedException e) { }
         
          mPage=findViewById(R.id.l22);
         mPage.setVisibility(View.GONE);
          mPage=findViewById(R.id.l32);
         mPage.setVisibility(View.VISIBLE);
         
         try {

               Thread.sleep(200);

         } catch (InterruptedException e) { }
         
          mPage=findViewById(R.id.l32);
         mPage.setVisibility(View.GONE);
          mPage=findViewById(R.id.l22);
         mPage.setVisibility(View.VISIBLE);
         
         
         try {

               Thread.sleep(200);

         } catch (InterruptedException e) { }
         
          mPage=findViewById(R.id.l22);
         mPage.setVisibility(View.GONE);
          mPage=findViewById(R.id.l21);
         mPage.setVisibility(View.VISIBLE);
         
         
         try {

               Thread.sleep(200);

         } catch (InterruptedException e) { }
         
          mPage=findViewById(R.id.l21);
         mPage.setVisibility(View.GONE);
          mPage=findViewById(R.id.l11);
         mPage.setVisibility(View.VISIBLE);
         try {

               Thread.sleep(200);

         } catch (InterruptedException e) { }
         
         
         
         
         MemoryGame1Activity.score=MemoryGame1Activity.score+10;
          MemoryGame1Activity.stage=MemoryGame1Activity.stage+1;
          a = 0;         
          
          try {

               Thread.sleep(200);

         } catch (InterruptedException e) { }
          abc.play(mDdok,1,1,0,0,1);
           
         try {

                Thread.sleep(200);

          } catch (InterruptedException e) { }
         
          startActivity(new Intent(LogicGame1Activity.this, LogicGameLastActivity.class));
          finish();
          
        
    break;