上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 41 下一页
摘要: Activity的生命周期和启动模式的知识点小结:1.如果Activity切换的时候,新Activity是透明,旧的不会走onStop方法。2.新的Activity切换的时候,旧Activity 会先执行,onpause,然后才会启动新的activity.3.Activity在异常情况下被回收时,o... 阅读全文
posted @ 2015-09-24 22:30 狂奔的小狮子 阅读(235) 评论(0) 推荐(0) 编辑
摘要: dialog默认的样式@android:style/Theme.Dialog对应的style有pading属性,所以win.getDecorView().setPadding(0,0,0,0);就能够水平占满了。项目使用代码如下:ComplainDialog complain_dialog = ne... 阅读全文
posted @ 2015-09-24 13:31 狂奔的小狮子 阅读(1184) 评论(0) 推荐(0) 编辑
摘要: Apktool:http://ibotpeaches.github.io/Apktool/install/ 最新版本2.0.1 dex2jar: https://github.com/pxb1988/dex2jar 最新版本2.0 JD-GUI: http://jd.benow.ca/ 最新版本1. 阅读全文
posted @ 2015-09-23 23:05 狂奔的小狮子 阅读(1527) 评论(0) 推荐(0) 编辑
摘要: OOM(OutOfMemory)转:http://hukai.me/android-performance-oom/前面我们提到过使用getMemoryClass()的方法可以得到Dalvik Heap的阈值。简要的获取某个应用的内存占用情况可以参考下面的示例( 关于更多内存查看的知识,可以参考这篇... 阅读全文
posted @ 2015-09-23 11:20 狂奔的小狮子 阅读(2819) 评论(0) 推荐(0) 编辑
摘要: TranslateAnimation动画,TranslateAnimation比较常用,比如QQ,网易新闻菜单条的动画,就可以用TranslateAnimation实现,通过TranslateAnimation(float fromXDelta, float toXDelta, float from... 阅读全文
posted @ 2015-09-17 18:15 狂奔的小狮子 阅读(345) 评论(0) 推荐(0) 编辑
摘要: selector根据不同的选定状态来定义不同的现实效果常用属性:android:state_selected--------选中android:state_focused--------获得焦点android:state_pressed--------点击android:state_enabled-... 阅读全文
posted @ 2015-09-16 15:53 狂奔的小狮子 阅读(903) 评论(0) 推荐(0) 编辑
摘要: apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion '22.0.0' defaultConfig { applicationId "com.edaixi.activity" minSdkVersion 9 ... 阅读全文
posted @ 2015-09-11 09:44 狂奔的小狮子 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 1.在build.gradle中集成听云.buildscript { repositories { mavenCentral() } dependencies { classpath fileTree(dir: 'c:\\tingyun\\plugin'... 阅读全文
posted @ 2015-09-11 08:51 狂奔的小狮子 阅读(1181) 评论(0) 推荐(0) 编辑
摘要: 1.opengameart.org这是我推荐次数最多的一个网站,原因不是它有多好,只是因为我第一个找到的就是它。这个网站里有很多资源,包括图片、3D材质、音乐、音效。当然,不是全部都免费的,在进入资源详情页面之后,留意左边,有一个LICENSE协议标签。如果是CC0协议,那就代表可以随意使用,我一般... 阅读全文
posted @ 2015-09-04 21:54 狂奔的小狮子 阅读(317) 评论(0) 推荐(0) 编辑
摘要: Error:Execution failed for task ':app:packageDebug'.> Duplicate files copied in APK META-INF/LICENSE.txt File 1: /Users/weichunsheng/.gradle/caches/... 阅读全文
posted @ 2015-08-31 10:32 狂奔的小狮子 阅读(1255) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 41 下一页