随笔分类 -  android

摘要:... 阅读全文
posted @ 2015-11-16 11:37 lipeil 阅读(1076) 评论(0) 推荐(0) 编辑
摘要:参考链接: 1、http://blog.csdn.net/bboyfeiyu/article/details/117104972\ http://www.cnblogs.com/LittleRedPoint/p/3429709.html 第一步:编写接口 package com.lpl; publi 阅读全文
posted @ 2015-11-10 12:18 lipeil 阅读(561) 评论(0) 推荐(0) 编辑
摘要:键盘消息处理模型:1、WMS统一管理Window, 它包含了InputManager变量,其对应c++层的NativeInputManager2、c++层的NativeInputManager包含 inputManger类型变量,3、c++层的InputManager对象包含InputReader、... 阅读全文
posted @ 2015-10-26 15:07 lipeil 阅读(578) 评论(0) 推荐(0) 编辑
摘要:消息处理机制:1、MessageQueue: 用来描述消息队列2、Looper:用来创建消息队列3、Handler:用来发送消息队列初始化:1、通过Looper.prepare()创建一个Looper对象,并将Looper对象保存到sThreadLocal静态变量中(其实是保存到了当前线程的Thre... 阅读全文
posted @ 2015-10-23 21:00 lipeil 阅读(337) 评论(0) 推荐(0) 编辑
摘要:Zygote:1、Zygote 是系统启动之后创建的第二个进程2、Zygote 创建zygote Socket、虚拟机3、Zygote 在虚拟机中通过forkSystemServer, 创建Server进程, 并且在其中启动服务(AMS、PMS等)4、Zygote 在虚拟机中注册zygote套接字,... 阅读全文
posted @ 2015-10-22 11:36 lipeil 阅读(472) 评论(0) 推荐(0) 编辑
摘要:Linux进程间通信的方式:管道(Pipe)信号(Signal)消息队列(Message)共享内存(Share Memory)套接字(Socket)中断BinderBinder 介绍:Binder 通信机制是在OpenBinder的基础上实现的,采用CS通信方式。OpenBinder是一种进程间通信... 阅读全文
posted @ 2015-10-20 16:35 lipeil 阅读(1233) 评论(0) 推荐(0) 编辑
摘要:第一步:参考官网:创建一个dmg,大小80g,这个要尽量大一点,40g感觉不够用;http://source.android.com/source/initializing.html第二步:下载android源码5.1.1。已经验证可编译成功,mac上http://pan.baidu.com/s/1... 阅读全文
posted @ 2015-10-15 19:35 lipeil 阅读(419) 评论(0) 推荐(0) 编辑
摘要:已经验证,可以编译成功。过程中会碰到一些编译错误,安装好依赖环境,可以解决。1、splite压缩包的合并,解压缩,md5验证http://pan.baidu.com/s/1bnG1NtXkitkat 安装包的下载参考 http://bbs.eoe.cn/thread-543546-1-1.html2... 阅读全文
posted @ 2015-09-26 15:37 lipeil 阅读(354) 评论(0) 推荐(0) 编辑
摘要:未经验证http://blog.csdn.net/gaojinshan/article/details/14228737百度云盘保存了大量android源码,没有经过验证,并不能保证能够正常编译,但是可以保证我自己没有修改过http://pan.baidu.com/s/1qWpCAhY 阅读全文
posted @ 2015-09-23 17:43 lipeil 阅读(1111) 评论(0) 推荐(0) 编辑
摘要:1、java基础知识http://www.eoeandroid.com/thread-333511-1-1.html网易公开课-抽象编程:http://open.163.com/special/opencourse/abstractions.html2、android的基础知识http://www.... 阅读全文
posted @ 2015-09-18 22:28 lipeil 阅读(201) 评论(0) 推荐(0) 编辑
摘要:public class Annote { @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE,ElementType.METHOD,ElementType.FIELD,ElementType.CONSTRUCTOR... 阅读全文
posted @ 2015-09-14 16:33 lipeil 阅读(274) 评论(0) 推荐(0) 编辑
摘要:1、google 官方提供的下拉刷新控件 阅读全文
posted @ 2015-07-29 11:09 lipeil 阅读(143) 评论(0) 推荐(0) 编辑
摘要:源码分析:http://blog.csdn.net/luoshengyang/article/details/8923485中文博客:英文博客:https://github.com/android-cn/android-dev-com源码下载:http://blog.csdn.net/ilittle... 阅读全文
posted @ 2015-07-10 10:45 lipeil 阅读(162) 评论(0) 推荐(0) 编辑
摘要:android:splitMotionEvents="false"ListView的这个属性可以限制它不能同时点击两个Item 阅读全文
posted @ 2015-07-03 12:06 lipeil 阅读(486) 评论(0) 推荐(0) 编辑
摘要:dumpsys命令可以显示手机中所有应用程序的信息,并且也会给出现在手机的状态。直接执行adb shell dumpsys KEY会显示以下所有信息。KEY的可选名称SurfaceFlinger, accessibility, account, activity, alarm, appwidget,... 阅读全文
posted @ 2015-06-16 11:33 lipeil 阅读(535) 评论(0) 推荐(0) 编辑
摘要:方法一:通过手机上Running services的Activity查看,可以通过Setting->Applications->Running services进。关于Running services的详细内容请参考《Android中使用"running services"查看service进程内存... 阅读全文
posted @ 2015-06-16 11:23 lipeil 阅读(2324) 评论(0) 推荐(0) 编辑
摘要:1、修改切换item的时间public class FixedSpeedScroller extends Scroller { private int mDuration = 300; public FixedSpeedScroller(Context... 阅读全文
posted @ 2015-06-15 11:44 lipeil 阅读(1560) 评论(1) 推荐(0) 编辑
摘要:方案1:viewPager.setOverScrollMode(viewPager.OVER_SCROLL_NEVER); 方案2:通过反射的办法,直接操作具体控件具体的控件private void initViewPager() { try { Field leftEdgeFie... 阅读全文
posted @ 2015-06-02 10:17 lipeil 阅读(3775) 评论(0) 推荐(0) 编辑
摘要:// 隐藏logoView child = mMapView.getChildAt(1);if (child != null && (child instanceof ImageView || child instanceof ZoomControls)){ chil... 阅读全文
posted @ 2015-05-19 12:04 lipeil 阅读(10270) 评论(0) 推荐(0) 编辑
摘要:转:http://blog.sina.com.cn/s/blog_af26e3330101988v.html1.对整数进行格式化:%[index$][标识][最小宽度]转换方式我们可以看到,格式化字符串由4部分组成,其中%[index$]的含义我们上面已经讲过,[最小宽度]的含义也很好理解,就是最终... 阅读全文
posted @ 2015-04-20 15:36 lipeil 阅读(462) 评论(0) 推荐(0) 编辑