我的个人小站
03
17
build窗口乱码问题 build窗口乱码问题
参考文章:https://blog.csdn.net/jingzz1/article/details/104551555 找到下面这个文件 -Dfile.encoding=UTF-8然后在里面加上
2020-03-17
17
保存图片到本地 保存图片到本地
获取fresco的图片我们想获取到这个框架缓存的图片,如何实现?考虑使用下面的方法。 FileBinaryResource resource = (FileBinaryResource)Fresco.getImagePipelineFact
2020-03-17
17
表格显示 表格显示
有两个 https://github.com/RmondJone/LockTableViewhttps://github.com/huangyanbin/smartTable 最后选的是第一个,因为比较小 使用方法 List<Too
2020-03-17
17
list初始化 list初始化
方法1List<String> stringList = new LinkedList<>(); stringList.add("a"); stringList.add("b"); stringList.add("c
2020-03-17
16
打开url 打开url
参考文章:https://blog.csdn.net/cheng545/article/details/53786122 Uri uri = Uri.parse("http://www.baidu.com"); Intent intent
2020-03-16
16
date类 date类
new Date();//无参数,返回当前时间 new Date(millseconds);//参数为距离1970年1月1日8时0分0秒0毫秒的毫秒数,返回对应的时间 new Date(timeString);//参数为时间字符串,返回这个
2020-03-16
16
常用的数学的数 常用的数学的数
表示 意义 约等于Math.E e 2.718Math.PI 圆周率 3.14Math.SQRT2 2的平方根 1.414Math.LN2 2的自然对数 0.693 方法 作用Math.abs(x) 求x的绝对值Math.pow(x,y)
2020-03-16
16
16
获取屏幕高度和宽度 获取屏幕高度和宽度
参考文章:https://blog.csdn.net/u012527802/article/details/44645731 前面有几个方法已经过时了,我们使用新的方法。 this是一个activity对象 WindowManager ma
2020-03-16
70 / 105