04 2022 档案

摘要:/** * 根据图片路径获取需要矫正的角度 * @param filepath 图片路径 * @return 需矫正的角度 */ public static int getExifOrientation(String filepath) { int degrees = 0; ExifInterfac 阅读全文
posted @ 2022-04-24 15:45 指切 阅读(449) 评论(0) 推荐(0) 编辑
摘要://手指离开屏幕时还原 public static void addScaleTouch(View view) { view.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v 阅读全文
posted @ 2022-04-14 09:31 指切 阅读(251) 评论(0) 推荐(0) 编辑
摘要:/** * 判断SD卡是否可用 * * @return true : 可用<br>false : 不可用 */ public static boolean isSDCardEnable() { return Environment.MEDIA_MOUNTED.equals(Environment.g 阅读全文
posted @ 2022-04-14 09:27 指切 阅读(131) 评论(0) 推荐(0) 编辑
摘要:布局 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com 阅读全文
posted @ 2022-04-13 09:29 指切 阅读(750) 评论(0) 推荐(0) 编辑
摘要:重写dispatchKeyEvent方法即可 @Override public boolean dispatchKeyEvent(KeyEvent event) { if (event.getKeyCode() == KeyEvent.KEYCODE_BACK && isTiming) { retu 阅读全文
posted @ 2022-04-02 16:25 指切 阅读(576) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示