Check App Info

//By Jetfrican Electro World Intent intent = new Intent(); intent.setAction(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); Uri uri = Uri.fromParts("package", MainActivity.this.getPackageName(), null); intent.setData(uri); MainActivity.this.startActivity(intent);

Linear Swipe

//Create Linear1 //Add Linear2 to Linear1 //OnCreate linear2.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View p1, MotionEvent p2) { switch(p2.getAction()) { case MotionEvent.ACTION_DOWN: f = p2.getY(); break; case MotionEvent.ACTION_UP: t = p2.getY(); if (((f - t) < -250)) { _slideDown(); } if (((t - f) < -250)) { _slideUp(); } break; } return true; }}); //_slideDown ObjectAnimator animX = ObjectAnimator.ofFloat(linear2, "x", 300f); ObjectAnimator animY = ObjectAnimator.ofFloat(linear2, "y", 700f); AnimatorSet animSetXY = new AnimatorSet(); animSetXY.playTogether(animX, animY); animSetXY.start(); //_slideUp ObjectAnimator animX = ObjectAnimator.ofFloat(linear2, "x", 0f); ObjectAnimator animY = ObjectAnimator.ofFloat(linear2, "y", 0f); AnimatorSet animSetXY = new AnimatorSet(); animSetXY.playTogether(animX, animY); animSetXY.start();

Comments

Popular posts from this blog

View Pager

File Picker