摘要: 直接上代码工具类 简单明了 1 /** 2 * Author : monkey0928 3 * E-mail : hanbao@xwtec.c 4 * Date : 2020/6/29 17:54 5 * DESCRIBE :禁用 7.0(23)以上字体大小和显示大小随系统变化 6 */ 7 pub 阅读全文
posted @ 2020-07-21 09:53 monkey0928 阅读(1444) 评论(0) 推荐(0) 编辑
摘要: 1.写一个工具类,代码如下 /** * Author : monkey0928 * E-mail : hanbao@xwtec.c * Date : 2020/6/29 17:54 * DESCRIBE :禁用字体大小和显示大小随系统变化 */ public final class DispUtil 阅读全文
posted @ 2020-06-30 09:10 monkey0928 阅读(2442) 评论(0) 推荐(1) 编辑
摘要: 1.定义一个广播的接收类 public class MyReceivers extends BroadcastReceiver { @SuppressLint("WrongConstant") @Override public void onReceive(Context context, Inte 阅读全文
posted @ 2020-06-09 09:54 monkey0928 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 首先看看修复bug之后的显示对比图,结果一目了然 显示一行之前 修改bug之后 主要就是ScrollView嵌套listview显示计算 直接上代码 一目了然 主要代码就是计算每个listview的高度,代码如下 最后在listview填充数据的adapter之后调用改方法即可解决bug 阅读全文
posted @ 2019-08-09 13:33 monkey0928 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 先看看截图效果图 压缩图片 点击按钮弹窗分享dialog提示窗 dailog布局 分享图片到微信或盆友圈 最终实现效果如图所示........ 阅读全文
posted @ 2019-04-28 16:25 monkey0928 阅读(867) 评论(0) 推荐(0) 编辑
摘要: 1 package com.example.grenaderose.redthunder.utils; 2 import android.content.Context; 3 import android.os.Handler; 4 import android.os.Looper; 5 import android.widget.Toast; 6 7 public class ... 阅读全文
posted @ 2019-04-28 15:44 monkey0928 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 1 package com.example.grenaderose.redthunder.utils; 2 3 import android.content.Context; 4 import android.content.pm.PackageInfo; 5 import android.content.pm.PackageManager; 6 7 /** 8 * Des... 阅读全文
posted @ 2019-04-28 15:42 monkey0928 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 保存图片到相册 3 */ 4 public void saveImageToGallery(Bitmap mBitmap) { 5 if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { 6 7 ... 阅读全文
posted @ 2019-04-16 14:34 monkey0928 阅读(5228) 评论(0) 推荐(0) 编辑
摘要: 个人遇到的问题判断按钮的点击事件还是滑动事件 判断按钮坐标是否在矩形区域内 阅读全文
posted @ 2019-04-12 11:49 monkey0928 阅读(2991) 评论(0) 推荐(0) 编辑
摘要: 上图看效果 自定义圆角矩形ImageView工具类 布局文件使用 阅读全文
posted @ 2019-01-16 22:15 monkey0928 阅读(965) 评论(0) 推荐(0) 编辑