04 2022 档案
摘要:/** * 根据图片路径获取需要矫正的角度 * @param filepath 图片路径 * @return 需矫正的角度 */ public static int getExifOrientation(String filepath) { int degrees = 0; ExifInterfac
阅读全文
摘要://手指离开屏幕时还原 public static void addScaleTouch(View view) { view.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v
阅读全文
摘要:/** * 判断SD卡是否可用 * * @return true : 可用<br>false : 不可用 */ public static boolean isSDCardEnable() { return Environment.MEDIA_MOUNTED.equals(Environment.g
阅读全文
摘要:布局 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com
阅读全文
摘要:重写dispatchKeyEvent方法即可 @Override public boolean dispatchKeyEvent(KeyEvent event) { if (event.getKeyCode() == KeyEvent.KEYCODE_BACK && isTiming) { retu
阅读全文