文章分类 -  Android

多线程下载
摘要:参考文章:https://github.com/youngWM/Download 断点续传:http://blog.inet198.cn/?mchenys/article/details/45767125 阅读全文

posted @ 2016-08-11 13:48 CoolRandy 阅读(69) 评论(0) 推荐(0)

如何将github上的项目导入到android studio中
摘要:方法1、第一步:你的电脑上首先要有git和AndroidStudio,没有的话赶紧下去吧,之前我的博客也有开发工具,这里我就当你有了,直接开始。第二步:打开studio找到设置页面将你安装的git路径放到第二步中,点击ok。第三步:你要有一个github 的账号,这里我就当你有了,接下来进行下面的配... 阅读全文

posted @ 2015-07-16 21:24 CoolRandy 阅读(1093) 评论(0) 推荐(0)

android studio使用
摘要:http://blog.csdn.net/skykingf/article/details/45485115 阅读全文

posted @ 2015-07-11 17:51 CoolRandy 阅读(73) 评论(0) 推荐(0)

github论坛
摘要:https://github.com/android-cn/android-discuss/issues 阅读全文

posted @ 2015-06-28 22:44 CoolRandy 阅读(583) 评论(0) 推荐(0)

android网络三级缓存
摘要:http://blog.saymagic.cn/2015/01/30/android-pic-three-cache.html 阅读全文

posted @ 2015-06-28 21:36 CoolRandy 阅读(87) 评论(0) 推荐(0)

ViewDragHelper详解
摘要:http://blog.csdn.net/daditao/article/details/298260352013年谷歌i/o大会上介绍了两个新的layout: SlidingPaneLayout和DrawerLayout,现在这俩个类被广泛的运用,其实研究他们的源码你会发现这两个类都运用了View... 阅读全文

posted @ 2015-06-28 20:15 CoolRandy 阅读(615) 评论(0) 推荐(0)

android 事件处理机制之requestDisallowInterceptTouchEvent
摘要:当手指触摸到屏幕时,系统就会调用相应View的onTouchEvent,并传入一系列的action。当有多个层级的View时,在父层级允许的情况下,这个action会一直向下传递直到遇到最深层的View。所以touch事件最先调用的是最底层View的onTouchEent,如果View的onTouc... 阅读全文

posted @ 2015-06-28 20:02 CoolRandy 阅读(86) 评论(0) 推荐(0)

关于popupWindow
摘要:构造方法1public PopupWindow(View contentView, int width, int height, boolean focusable)contentView为要显示的view,width和height为宽和高,值为像素值,也可以是MATCHT_PARENT和WRAP_... 阅读全文

posted @ 2015-06-16 17:42 CoolRandy 阅读(650) 评论(0) 推荐(0)

android事件拦截处理机制详解
摘要:转载自:http://blog.csdn.net/chunqiuwei/article/details/41084921前段时间刚接触过android手机开发,对它的事件传播机制不是很了解,虽然网上也查了相关的资料,但是总觉得理解模模糊糊,似是而非,于是自己就写个小demo测试了一下。总算搞明白了它... 阅读全文

posted @ 2015-06-07 22:00 CoolRandy 阅读(117) 评论(0) 推荐(0)

View 绘制流程
摘要:View的绘制流程1. View 树的绘图流程当 Activity 接收到焦点的时候,它会被请求绘制布局,该请求由Android framework 处理.绘制是从根节点开始,对布局树进行 measure 和 draw 。整个 View 树的绘图流程在ViewRoot.java类的performTr... 阅读全文

posted @ 2015-06-07 16:03 CoolRandy 阅读(226) 评论(0) 推荐(0)

自定义View以及自定义ViewGroup
摘要:转载自:http://www.linuxidc.com/Linux/2014-12/110164.htmAndroid开发中偶尔会用到自定义View,一般情况下,自定义View都需要继承View类的onMeasure方法,那么,为什么要继承onMeasure()函数呢?什么情况下要继承onMeasu... 阅读全文

posted @ 2015-06-07 15:59 CoolRandy 阅读(349) 评论(0) 推荐(0)

事件的分发机制(View篇和ViewGroup篇)
摘要:参考声明:感谢郭霖http://blog.csdn.net/guolin_blog/article/details/9097463和张鸿洋http://blog.csdn.net/lmj623565791/article/details/38960443http://blog.csdn.net/ya... 阅读全文

posted @ 2015-06-06 20:41 CoolRandy 阅读(3722) 评论(1) 推荐(0)

GitGub优秀资源(android)
摘要:转自:http://blog.csdn.net/shulianghan/article/details/18046021主要介绍那些不错个性化的View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBa... 阅读全文

posted @ 2015-06-06 12:16 CoolRandy 阅读(886) 评论(0) 推荐(0)

关于android内存泄露
摘要:什么是内存泄露?Java使用有向图机制,通过GC自动检查内存中的对象(什么时候检查由虚拟机决定),如果GC发现一个或一组对象为不可到达状态,则将该对象从内存中回收。也就是说,一个对象不被任何引用所指向,则该对象会在被GC发现的时候被回收;另外,如果一组对象中只包含互相的引用,而没有来自它们外部的引用... 阅读全文

posted @ 2015-06-05 09:31 CoolRandy 阅读(104) 评论(0) 推荐(0)

关于listview
摘要:http://longluo.github.io/blog/20140214/some_tips_about_android_listview_performence/翻译 Long Luo原文链接:Performance Tips for Android’s ListView译者注:1. 由于这是... 阅读全文

posted @ 2015-05-30 20:35 CoolRandy 阅读(116) 评论(0) 推荐(0)

获取屏幕坐标
摘要:http://blog.csdn.net/lvxiangan/article/details/19971509 阅读全文

posted @ 2015-05-26 11:49 CoolRandy 阅读(96) 评论(0) 推荐(0)

android studio
摘要:http://blog.csdn.net/yanbober/article/details/45306483 阅读全文

posted @ 2015-05-17 22:19 CoolRandy 阅读(77) 评论(0) 推荐(0)

android性能优化
摘要:http://stackvoid.com/performance-tuning-on-android/http://greenrobot.me/devpost/doing-more-with-less-being-a-good-android-citizen/http://droidyue.com/... 阅读全文

posted @ 2015-05-17 21:13 CoolRandy 阅读(150) 评论(0) 推荐(0)

Webview
摘要:目前很多android app都内置了可以显示web页面的界面,会发现这个界面一般都是由一个叫做WebView的组件渲染出来的,学习该组件可以为你的app开发提升扩展性。先说下WebView的一些优点:可以直接显示和渲染web页面,直接显示网页webview可以直接用html文件(网络上或本地ass... 阅读全文

posted @ 2015-05-15 15:36 CoolRandy 阅读(215) 评论(0) 推荐(0)

Android开发之Service与IntentService的区别与使用场景(源代码剖析)
摘要:因为最大部分的service不需要同时处理多个请求(处理多个请求是一个比较危险的多线程的场景),这样在在这种情况下呢,最好使用IntentService类如果你实现你的服务。 使用intentService与service有什么不同呢(1)直接创建一个默认的工作线程,该线程执行所有的intent传递... 阅读全文

posted @ 2015-03-02 20:11 CoolRandy 阅读(367) 评论(0) 推荐(0)