2017年2月9日

摘要: Github链接 https://github.com/amitshekhariitbhu/Android Debug Database 一个用来调试安卓程序里 数据库(DB) SharedPreferences(SP) 的一个工具库。 它可以直接在你的浏览器中 和`编辑`被调试app的DB和SP数 阅读全文
posted @ 2017-02-09 11:27 刘豆 阅读(1030) 评论(0) 推荐(0) 编辑

2016年1月7日

摘要: public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true;}更改为public boolean shouldOverrideUrlLoading(WebVi... 阅读全文
posted @ 2016-01-07 15:46 刘豆 阅读(1608) 评论(0) 推荐(0) 编辑

2015年12月31日

摘要: 1.把文件copy到libs下。2.在app/build.gradle文件的android层级下添加。sourceSets.main { jniLibs.srcDir 'libs'}问答链接http://stackoverflow.com/questions/24357687/how-to-i... 阅读全文
posted @ 2015-12-31 11:53 刘豆 阅读(1000) 评论(0) 推荐(0) 编辑

2015年12月1日

摘要: Hi If you don't want to go for hard code all of this stuff , then go for below easy steps->Your project ->Your Module ->Right click on your module ... 阅读全文
posted @ 2015-12-01 12:09 刘豆 阅读(815) 评论(0) 推荐(0) 编辑

2015年11月15日

摘要: 1.用cocos studio创建一个关卡选择的示例工程。2.用cocos studio创建一个所有资源的和图(.plist)。3.用IDE打开工程。4.接着看代码。Director::getInstance()->getTextureCache()->addImageAsync("Plist.pn... 阅读全文
posted @ 2015-11-15 02:04 刘豆 阅读(1170) 评论(0) 推荐(0) 编辑
摘要: int i = 123; char buffer[20]; std::string number("number = "); std::string str = number + itoa(i, buffer, 10); int i = 123; std::st... 阅读全文
posted @ 2015-11-15 01:16 刘豆 阅读(755) 评论(0) 推荐(0) 编辑

2015年11月9日

摘要: 闪烁主要由于RecyclerView使用的默认的动画导致的,所以解决的方法就是修改默认的动画。首先把默认的动画(DefaultItemAnimator)代码复制到自定义的MyItemAnimator类里面。接着找到animateChangeImpl方法修改其中的两行代码。// 去掉alpha(0)o... 阅读全文
posted @ 2015-11-09 15:26 刘豆 阅读(31457) 评论(0) 推荐(0) 编辑

2015年6月30日

摘要: 1.file-new-import module 2.找到sharesdk路径 3.file-project structure 阅读全文
posted @ 2015-06-30 17:56 刘豆 阅读(409) 评论(0) 推荐(0) 编辑

2014年12月31日

摘要: 在需要被打开的activity的配置节点内添加intent-filter 在被打开的activity中获取数据 ... 阅读全文
posted @ 2014-12-31 16:59 刘豆 阅读(538) 评论(0) 推荐(0) 编辑

2014年12月25日

摘要: 1 public static boolean shareMultipleToMoments(Activity activity, String text, List files){ 2 3 Intent intent = new Intent(); 4 ... 阅读全文
posted @ 2014-12-25 09:47 刘豆 阅读(376) 评论(0) 推荐(0) 编辑

导航