保存图片至相册更新+超屏幕View转图片+课表绘制+超长Log分开打印

保存图片到相册
https://www.cnblogs.com/plokmju/p/android_mediastore.html
https://stackoverflow.com/questions/4646913/android-how-to-use-mediascannerconnection-scanfile
https://blog.csdn.net/z1246300949/article/details/50681435


经实测,通过scanfile内存泄漏,single方式不起作用,
还是这个链接中的最终方法比较好
https://blog.csdn.net/z1246300949/article/details/50681435


超屏幕View 转 图片 /参考recyclerview的思想
https://blog.csdn.net/wbwjx/article/details/46674157


绘制图片文字
https://blog.csdn.net/u013831257/article/details/50654494

绘制文字居中
https://blog.csdn.net/u013571833/article/details/52346422


课表
https://github.com/Kelin-Hong/ScrollablePanel


日志超长分割打印 最好传3900以内
 
 public static void showLargeLog(String logContent, int showLength) {
        if (logContent.length() > showLength) {
            String show = logContent.substring(0, showLength);
            DebugUtils.error(show);
            /*剩余的字符串如果大于规定显示的长度,截取剩余字符串进行递归,否则打印结果*/
            if ((logContent.length() - showLength) > showLength) {
                String partLog = logContent.substring(showLength, logContent.length());
                showLargeLog(partLog, showLength);
            } else {
                String printLog = logContent.substring(showLength, logContent.length());
                DebugUtils.error(printLog);
            }
        } else {
            DebugUtils.error(logContent);
        }
    }

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值