上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 编译Android项目时提示: This version of android studio is incompatible with the gradle version used.Try disabling the instant run   File → Settings → Preferen 阅读全文
posted @ 2016-03-12 23:04 pepelu 阅读(2162) 评论(0) 推荐(0) 编辑
摘要: 转自: http://blog.csdn.net/chenleicpp/article/details/46848785   程序崩溃,错误提示: Caused by: java.lang.NoClassDefFoundError: android.support.v7.recyclerview.R 阅读全文
posted @ 2016-03-09 23:48 pepelu 阅读(734) 评论(0) 推荐(0) 编辑
摘要: 当继承遇到反射 标签 : Java 起因:使用EventBus库时,只是在父类中注册了监听事件,把this传递过去了:EventBus.getDefault().register(this),子类中并没有注册监听事件,但在响应时调用的却是子类中的响应方法,EventBus是用反射来获取注册监听器的类 阅读全文
posted @ 2016-01-22 09:33 pepelu 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 提示文本: label: 复选框集合:richTextBox1_TextChanged 添加复选框,对复选框监听 CheckedListBox:复选框列表 _list.SelectedIndexChanged += list_SelectedIndexChanged;委托 private Check 阅读全文
posted @ 2016-01-20 22:44 pepelu 阅读(296) 评论(0) 推荐(0) 编辑
摘要: c++编译 标签(空格分隔): 未分类 总结一下如何使用visual studio 和mingw编译c++文件 单文件编译: / b.cpp / include "c.h" string s1=""; string s2=""; void fun1() { s1="Now in fun1..."; 阅读全文
posted @ 2016-01-18 23:39 pepelu 阅读(775) 评论(0) 推荐(0) 编辑
摘要: 批处理 用visual studio编译c++代码,但要来回切cmd工作目录,于是想到要写个批处理。 set title pepelu 设置cmd标题 @echo 控制台输出信息 rem 注释信息 choice /c 12 M:"enter your choice" 1. /c:选项列表 2. 12 阅读全文
posted @ 2016-01-17 09:48 pepelu 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 参考:http://developer.android.com/guide/topics/manifest/meta-data-element.html http://my.oschina.net/xesam/blog/135333 http://blog.csdn.net/top_code/art 阅读全文
posted @ 2016-01-05 11:02 pepelu 阅读(1588) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.cnblogs.com/bill-joy/archive/2012/04/26/2471831.html   1.在res/values目录下新建任意文件名xml文件: 2.新建Java类,继承View: 3.配置layout文件: 阅读全文
posted @ 2016-01-04 17:28 pepelu 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 通过反射获取布局文件: 使用getResources().getIdentifier(),传入三个参数:布局文件名,资源类型,包名;返回值为资源的ID。   使用:包名+“:”+“layout/layout_name”获取layout控件:   使用ID获取控件:   使用图片名获取图片: 或者使用 阅读全文
posted @ 2015-12-28 18:47 pepelu 阅读(6673) 评论(0) 推荐(1) 编辑
摘要: 在程序的启动页面,如果每次要显示不同的界面,可以考虑使用ViewStub(配合SharedPreference),用参数控制每次要实现的功能从而调用inflate()方法初始化不同的布局。 使用方法: http://developer.android.com/intl/zh-cn/reference 阅读全文
posted @ 2015-11-11 11:20 pepelu 阅读(149) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页