摘要:https://github.com/marshallino16/FloatingView
阅读全文
摘要:参考:https://github.com/square/ottoeventbus 基础上
阅读全文
摘要:参考http://www.it165.net/pro/html/201404/12375.html@Optional@InjectView@Optional@onClick1.@Optional@InjectView(R.id.might_not_be_there) TextView mightNo...
阅读全文
摘要:参考:http://freish.iteye.com/blog/1158008java编译器采用bridge方法来兼容本该使用泛型的地方使用了非泛型的用法的问题。如下代码:Java代码publicclassTestBridgeMethod{publicstaticvoidmain(String[]a...
阅读全文
摘要:参:http://blog.zhourunsheng.com/2011/09/%E6%8E%A2%E7%A7%98%E8%85%BE%E8%AE%AFandroid%E6%89%8B%E6%9C%BA%E6%B8%B8%E6%88%8F%E5%B9%B3%E5%8F%B0%E4%B9%8B%E4%B...
阅读全文
摘要:http://www.cnblogs.com/over140/archive/2011/11/23/2259367.html加载jarboolean bool = new File("/sdcard/test.jar").exists(); DexClassLoader cl = new De...
阅读全文
摘要:http://www.zhiyangit.com/html/2012/5/1250.htm生命周期:加载加载的类并把类的信息加载到jvm的方法区连接做一些加载后的验证工作以及一些初始化前的准备工作,把常量池中的符号引用转换为直接引用初始化按照顺序自上而下运行类中的变量赋值语句和静态语句,如果有父类,...
阅读全文
摘要:参考:http://www.cnblogs.com/cmduan/archive/2012/03/09/2388345.html如何计算密度1.标准是240*320画在1.5*2平方inch上。那么像每平方英寸有240*320/(1.5*2)=25600点,也就是一平方英寸的像素点为25600,所以...
阅读全文
摘要:参考:http://www.cnblogs.com/bill-joy/archive/2012/03/24/2415539.htmlhttp://blog.sina.com.cn/s/blog_465918fc0101ehf2.html//方法一:textView.setText(Html.from...
阅读全文
摘要:http://blog.csdn.net/feng88724/article/details/6409313http://byandby.iteye.com/blog/1028034定义的Activity的Manifest中 ... ...
阅读全文
摘要:参考:http://www.open-open.com/lib/view/open1328152424546.html搭建Junithttp://zhidao.baidu.com/link?url=vMCO-E0_utuzonHcMnZ-xj0168uooyIV7fnDRttjbTdZmIw5daF...
阅读全文
摘要:http://blog.163.com/ppy2790@126/blog/static/103242241201381645353273/Intent作为联系各Activity之间的纽带,其作用并不仅仅只限于简单的数据传递。通过其自带的属性,其实可以方便的完成很多较为复杂的操作。例如直接调用拨号功能...
阅读全文
摘要:参考:http://www.cnblogs.com/error404/archive/2013/04/09/3010514.htmlhttp://bbs.51cto.com/thread-1075165-1.html1.添加权限:2.资源文件夹values-en values-zh 等3.代码:pu...
阅读全文
摘要:参考:http://deerchao.net/tutorials/regex/regex.htm#mission在线测试网址:http://regexpal.com/元字符.匹配除换行符以外的任意字符\w匹配字母或数字或下划线或汉字\s匹配任意的空白符包括换行符号\d匹配数字\b匹配单词的开始或结束...
阅读全文
摘要:http://www.cnblogs.com/linucos/archive/2012/05/24/2516623.htmlhttp://blog.csdn.net/fuyajun01/article/details/27710535Android系统进程间通信方式:1.共享内存无需拷贝,但控制复杂...
阅读全文
摘要:参考:http://www.cnblogs.com/jacktu/archive/2012/01/02/2310326.htmlhttp://blog.csdn.net/yun90/article/details/8618521基础知识:1.下面的Xfermode子类可以改变这种行为:AvoidXf...
阅读全文
摘要:上图:上代码:package com.example.testview;import android.annotation.SuppressLint;import android.annotation.TargetApi;import android.content.Context;import a...
阅读全文
摘要:看源码:Pull-to-Refresh.Rentals-Androidhttps://github.com/Yalantis/Pull-to-Refresh.Rentals-AndroidAndroid-PullToRefreshhttps://github.com/chrisbanes/Andro...
阅读全文
摘要:参考http://segmentfault.net/blog/stormzhang/1190000002401964
阅读全文
摘要:参考:http://www.cnblogs.com/vanezkw/tag/ORMlite/
阅读全文
摘要:http://www.tuicool.com/articles/If6rueyhttp://jakewharton.github.io/butterknife/@InjectView(R.id.title) TextView title;@OnClick(R.id.submit)public voi...
阅读全文
摘要:参考:http://blog.csdn.net/wangtingshuai/article/details/8635787js代码 // 注入js函数监听 private void addImageClickListner() { // 这段js函数的功能就是,遍历所有的img几点,并添加oncl...
阅读全文
摘要:结构如下:magic: class:文件的特定前缀,值为CAFEBABEminor_version:小版本号major_version:大版本号constant_pool_count:常量池数量constant_pool:常量池中的各种值access_flags:class:访问标志 如 privi...
阅读全文
摘要:参考:深入理解Java虚拟机:JVM高级特性与最佳实践(第2版)“内存模型”一词,可以理解为在特定的操作协议下,对特定的内存或高速缓存进行读写访问的过程抽象。Java内存模型(Java Memory Model, JMM)主内存与工作内存每条线程还有自己的工作内存,线程的工作内存中保存了被该线程使用...
阅读全文
摘要:http://zengzhaoshuai.iteye.com/blog/1132288声明为 transient,不被序列化package com.zzs.tet;import java.io.File;import java.io.FileInputStream;import java.io.Fi...
阅读全文
摘要:读写锁:分为读锁和写锁,多个读锁不互斥,读锁与写锁互斥,这是由jvm自己控制的,你只要上好相应的锁即可。如果你的代码只读数据,可以很多人同时读,但不能同时写,那就上读锁;如果你的代码修改数据,只能有一个人在写,且不能同时读取,那就上写锁。总之,读的时候上读锁,写的时候上写锁!ReentrantRea...
阅读全文
摘要:图标拖动过程先长按,拖动,松开手指launcher.java中setupViews方法, private void setupViews() { final DragController dragController = mDragController; mLaunche...
阅读全文
摘要:参考:http://blog.csdn.net/wdaming1986/article/details/7671318http://www.cnblogs.com/DonkeyTomy/articles/3229764.html查看Launcher.xml ...
阅读全文
摘要:参考:http://www.eoeandroid.com/thread-550720-1-1.html /** * 多表查询 * @param companyId 根据公司id查询 * @return */ public ...
阅读全文
摘要:桌面启动执行LauncherApplication.java ----onCreate()方法@Override public void onCreate() { super.onCreate(); // set sIsScreenXLarge and sScree...
阅读全文
摘要:包名 com.android.launcher把launcher相关数据库文件从手机中取出来shell@android:/data/data/com.android.launcher/databases # lslslauncher.dblauncher.db-journalshell@androi...
阅读全文
摘要:public StringgetType(Uri) 用于返回指定的Uri中的数据的MIME类型*如果操作的数据属于集合类型,那么MIME类型字符串应该以vnd.android.cursor.dir/开头。例如:要得到所有person记录的Uri为content://contacts/person,那...
阅读全文