09 2017 档案
摘要:1,Android代码设置Shape,corners,Gradient (http://blog.csdn.net/houshunwei/article/details/17392409) //取得CheckBox对象 CheckBox checkBox = (CheckBox) findViewB
阅读全文
摘要:/** * 获取属性名数组 * */ public static List<String> getFiledName(Object o){ Field[] fields=o.getClass().getDeclaredFields();// String[] fieldNames=new Strin
阅读全文
摘要:写DB框架的时候,使用反射获取属性的时候,多了一个$change属性,当场一脸懵比。 stackoverflow 发现是Android Studio2.0的.Instant Run 的问题. 解决办法 [转载请注明:Canney 原创:http://blog.csdn.net/canney_chen
阅读全文
摘要:json解析有很多工具,这里说的是最常用也是解析速度最快的Gson,Gson是google家出的,有一个缺点就是无法设置null替换,我们只能手动的批量替换服务器返回的null了,正常的接口定义的时候是绝对不允许服务器返回null的,后台结果却总会出现null!如果搜索的话有一个常见的答案,Gson
阅读全文
摘要:BarDataSet set1 = new BarDataSet(yVals1, null); set1.setBarSpacePercent(0f);//可认为是设置柱子之间的的粗细,数字越大,柱子之间距离就大
阅读全文
浙公网安备 33010602011771号