上一页 1 ··· 104 105 106 107 108 109 110 111 112 ··· 340 下一页
摘要: 使用Android Studio来进行图片背景设置,编译时发生了一个mergeDebugResources异常。 异常原因 这个异常的意思是对资源合并发生错误,那就是我使用的图片资源有问题,我使用的图片是能在android环境自适应展示的.9.png格式,在Eclipse上使用是能通过编译的,但是为 阅读全文
posted @ 2016-12-01 15:04 星辰之力 阅读(3795) 评论(0) 推荐(0)
摘要: SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd"); Calendar c = Calendar.getInstance(); System.out.println(“当前日期: ”+sf.format(c.getTime())); c.add(Calen... 阅读全文
posted @ 2016-12-01 09:54 星辰之力 阅读(10653) 评论(0) 推荐(0)
摘要: 其实很简单,在适配器里面重写isChildSelectable的时候返回值切记为true,这样才能使得二级监听有响应。 其次注意继承的是BaseExpandableListAdapter 阅读全文
posted @ 2016-11-30 15:14 星辰之力 阅读(826) 评论(0) 推荐(0)
摘要: 转载请注明出处:http://blog.csdn.net/crazy1235/article/details/53386286 SnapHelper 是 Android Support Library reversion 24.2.0 新增加的API。 SnapHelper 的应用 SnapHelp 阅读全文
posted @ 2016-11-30 13:53 星辰之力 阅读(7490) 评论(0) 推荐(0)
摘要: String str = "1234567"; if(str.indexOf("23") != -1) { System.out.println("包含该字符串"); } 阅读全文
posted @ 2016-11-30 10:52 星辰之力 阅读(38048) 评论(0) 推荐(0)
摘要: String 类代表字符串。Java 程序中的所有字符串字面值(如 "abc" )都作为此类的实例来实现。(这个没啥了解的吧,经常用 class)public interface CharSequence { public int length(); public char charAt(int i 阅读全文
posted @ 2016-11-30 10:50 星辰之力 阅读(1123) 评论(0) 推荐(0)
摘要: 时间转换为时间戳: 时间戳转换为时间: 阅读全文
posted @ 2016-11-29 15:59 星辰之力 阅读(9571) 评论(0) 推荐(0)
摘要: String json = "{''data'':[{''name'':''Wallace''},{''name'':''Grommit''}]}"; StringBuffer marketXml = new StringBuffer(); jsonObjSplit = new JSONObject(json ); JSONArray ja = jsonObjSpl... 阅读全文
posted @ 2016-11-29 15:39 星辰之力 阅读(12013) 评论(0) 推荐(1)
摘要: 原文简书地址:http://www.jianshu.com/p/dca9c323c686 1 前言 平时如果想要替换包名一般是在AS中右键Rename进行操作。但是如果遇到一份代码希望导出几种不同的包名(不是ApplicationId),并且代码还会持续更新,这时候就需要使用脚本在打包时自动导出成不 阅读全文
posted @ 2016-11-29 15:35 星辰之力 阅读(1464) 评论(0) 推荐(0)
摘要: DateTimePicker这个类库包含了漂亮的 DatePicker 和 TimePicker ,类似于在新 Google Agenda App中看到的。 项目主页:http://www.open-open.com/lib/view/home/1389605122336 阅读全文
posted @ 2016-11-28 10:01 星辰之力 阅读(11203) 评论(0) 推荐(0)
上一页 1 ··· 104 105 106 107 108 109 110 111 112 ··· 340 下一页