摘要: package javaTest; public class TestInt { public static void main(String[] args) { // TODO Auto-generated method stub int i = 2147483647;//int 类型有自己的存储范围的,那么怎么才能知道它的取值范围有多大,这个取值范围是怎么规定的 //默认... 阅读全文
posted @ 2017-12-22 10:27 lichl 阅读(732) 评论(0) 推荐(0) 编辑
摘要: float baseline = height/2 + mPaint.getTextSize()/2 - mPaint.getFontMetrics().descent;文字尺寸就是 阅读全文
posted @ 2017-12-07 11:30 lichl 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 效果xml 阅读全文
posted @ 2017-11-05 18:30 lichl 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1.什么是泛型擦除 要理解泛型擦除,要先知道什么是泛型,泛型是用来规范对象(包含集合)的参数类型,如ArrayList<String>,来规范传入集合中对象的类型的为String,通过 <? extends T> 或<? super T>来规范其上下边界 泛型擦除也就是泛型的类型擦除,指在编译器中为 阅读全文
posted @ 2017-08-23 11:38 lichl 阅读(134) 评论(0) 推荐(0) 编辑
摘要: http://www.jianshu.com/p/1e6eed09d48b https://appkfz.com/2015/11/12/mastering-coordinator/ 阅读全文
posted @ 2017-07-28 15:58 lichl 阅读(85) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/chenliguan/article/details/52809758 阅读全文
posted @ 2017-05-17 17:55 lichl 阅读(1107) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/ccpat/article/details/45507751 阅读全文
posted @ 2017-05-16 17:44 lichl 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Android中动画的移动起始位置 X轴平移动画 Y轴平移动画 Android中的动画的fromXDelta或是fromYDelta是以左下角为坐标轴进行平移的 注:以上图片坐标系均已左上角为准 阅读全文
posted @ 2017-02-22 18:00 lichl 阅读(579) 评论(0) 推荐(0) 编辑
摘要: Java中判断字符串是否为数字的方法: 1.用JAVA自带的函数 public static boolean isNumeric(String str){ for (int i = 0; i < str.length(); i++){ System.out.println(str.charAt(i) 阅读全文
posted @ 2017-02-20 16:15 lichl 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1.java中的短路与(&&)、短路或(||) 与 逻辑与(&)、逻辑或(|)有什么区别啊? 1.java中的短路与(&&)、短路或(||) 与 逻辑与(&)、逻辑或(|)有什么区别啊? 最佳答案 &是java中的位逻辑运算: eg: 2&3=2; 分析如下: 2的二进制为10 ;3的二进制为11 阅读全文
posted @ 2016-12-13 11:25 lichl 阅读(181) 评论(0) 推荐(0) 编辑