Exemplo n.º 1
0
  public static void sacleBreath(View view) {
    //        ScaleAnimation scaleAnimation = new ScaleAnimation(1, to, 1, to,
    // Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
    Animation scaleAnimation =
        AnimationUtils.loadAnimation(MyApplication.getContext(), R.anim.scale_animation);

    //        scaleAnimation.setRepeatCount(Animation.INFINITE);
    //		scaleAnimation.setRepeatMode(Animation.REVERSE);
    scaleAnimation.setDuration(500);
    view.startAnimation(scaleAnimation);
    scaleAnimation.start();
  }
Exemplo n.º 2
0
 private void exitApp() {
   MyApplication.getPeersMgr().stop();
   android.os.Process.killProcess(android.os.Process.myPid());
 }