android - enable and disable a textview on animation start and end -


how disable , enable multiple textview on animation start , end

public void animatekeyboardbutton(textview param1, edittext param2, boolean b) {             int = (param1.getwidth() - param2.getwidth()) / 2;             int j = (param1.getheight() - param2.getheight()) / 2;             int k = param2.getleft() - (i + param1.getleft());             int m = param2.gettop() - (j + param1.gettop());             localanimationset = new animationset(true);             scaleanimation localscaleanimation1 = new scaleanimation(1.0f, 1.2f,                     1.0f, 1.2f, 1, 0.5f, 1, 0.5f);             localscaleanimation1.setduration(100l);             scaleanimation localscaleanimation2 = new scaleanimation(1.0f, 0.8f,                     1.0f, 0.8f, 1, 0.5f, 1, 0.5f);             localscaleanimation2.setduration(100l);             localscaleanimation2.setstartoffset(100l);             translateanimation localtranslateanimation;              localtranslateanimation = new translateanimation(0.0f, k, 0.0f, m);             localtranslateanimation.setduration(200l);             localtranslateanimation.setstartoffset(200l);               localanimationset.addanimation(localtranslateanimation);             localanimationset.setfillenabled(true);             param1.startanimation(localanimationset);             localanimationset.setanimationlistener(new keyboardbuttonmoveoutlistener(param1));         }          class keyboardbuttonmoveoutlistener implements animation.animationlistener {             textview myview;              public keyboardbuttonmoveoutlistener(textview arg2) {                 this.myview = arg2;             }              public void onanimationend(animation paramanimation)              {                 animationset localanimationset = new animationset(true);                 int = gamescreen.this.random.nextint(3);                 int j = 0;                 int k = 0;                 switch (i) {                 default:                 case 0:                 case 1:                 case 2:                 }                 while (true) {                     translateanimation localtranslateanimation = new translateanimation(                             j, 0.0f, k, 0.0f);                     localtranslateanimation.setduration(200l);                     scaleanimation localscaleanimation1 = new scaleanimation(1.0f,                             1.2f, 1.0f, 1.2f, 1, 0.5f, 1, 0.5f);                     localscaleanimation1.setduration(100l);                     localscaleanimation1.setstartoffset(200l);                     scaleanimation localscaleanimation2 = new scaleanimation(1.0f,                             0.8f, 1.0f, 0.8f, 1, 0.5f, 1, 0.5f);                     localscaleanimation2.setduration(100l);                     localscaleanimation2.setstartoffset(300l);                     localanimationset.addanimation(localscaleanimation1);                     localanimationset.addanimation(localscaleanimation2);                     localanimationset.addanimation(localtranslateanimation);                     localanimationset.setfillenabled(true);                          gamescreen.this.dest.startanimation(localanimationset);                         gamescreen.this.dest.settext(str);                          if(myview==tv1)                         {                             tv2.setclickable(true);                             tv3.setclickable(true);                             tv4.setclickable(true);                             tv5.setclickable(true);                             tv6.setclickable(true);                             tv7.setclickable(true);                             tv8.setclickable(true);                         }                      return;                 }             }              public void onanimationrepeat(animation paramanimation) {             }              public void onanimationstart(animation paramanimation) {                         if(myview==tv1)                         {                             tv2.setclickable(false);                             tv3.setclickable(false);                             tv4.setclickable(false);                             tv5.setclickable(false);                             tv6.setclickable(false);                             tv7.setclickable(false);                             tv8.setclickable(false);                         }             }         }          public class keyboardmoveinlistener implements animation.animationlistener {             textview myview;              public keyboardmoveinlistener(textview arg2) {                 this.myview = arg2;             }              public void onanimationend(animation paramanimation) {              }              public void onanimationrepeat(animation paramanimation) {              }`enter code here`              public void onanimationstart(animation paramanimation) {              }         } 


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -