
Android入门笔记
文章平均质量分 61
好读书的程序员
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
android--BitMap 你应该记住的一些事-1
[1].Mobile devices typically have constrained system resources. Android devices can have as little as 16MB of memory available to a single application.=============================================原创 2013-11-19 11:26:39 · 824 阅读 · 0 评论 -
两张图解释Activity 的状态变换
原创 2013-11-09 16:12:53 · 812 阅读 · 0 评论 -
Activity Notes
If either the MAIN action or LAUNCHER category are not declared for one of your activities, then your app icon will not appear in the Home screen's list of apps. // Make sure we're runn原创 2013-11-09 17:21:00 · 581 阅读 · 0 评论 -
Activity 的几个回调函数的用法
If either the MAIN action or LAUNCHER category are not declared for one of your activities, then your app icon will not appear in the Home screen's list of apps. // Make sure we're原创 2013-11-09 16:44:45 · 2385 阅读 · 0 评论 -
android自定义View
先看一个图:相关的类:View //android中所有的可视组件都继承自View,View定义了很多callbacks来定义它的行为,如onDraw(),onMeasure()等。ViewParent (interface) //ViewParent为所有想扮演其他views的父亲的类定义了协议。ViewGroup (extends View and implem原创 2013-11-08 09:41:39 · 742 阅读 · 0 评论 -
Android事件分发机制完全解析,带你从源码的角度彻底理解(上)
转载请注明出处:http://blog.youkuaiyun.com/guolin_blog/article/details/9097463其实我一直准备写一篇关于Android事件分发机制的文章,从我的第一篇博客开始,就零零散散在好多地方使用到了Android事件分发的知识。也有好多朋友问过我各种问题,比如:onTouch和onTouchEvent有什么区别,又该如何使用?为什么给ListVie转载 2013-11-23 10:40:26 · 697 阅读 · 0 评论 -
android--View 你应该记住的一些事
[1].A View occupies a rectangular area on the screen and is responsible for drawing and event handling. View is the base class for widgets, which are used to create interactive UI components (butt原创 2013-11-22 21:28:58 · 929 阅读 · 0 评论 -
android--scrollview 高度的含义
v.getScrollY() 表示当前滚动到的y位置v.getHeight() scrollview窗口的高度v.getScrollY()+v.getHeight() 这个和表示已经展示给用户的内容的高度view.getMeasuredHeight() 表示实际内容(scrollview里的子只有一个,里面放的是实际的内容)总高度。整个滚动的过程,就好像拿着一个高度为v.g转载 2013-11-23 16:16:56 · 2101 阅读 · 0 评论 -
Android异步消息处理机制完全解析,带你从源码的角度彻底理解
转载请注明出处:http://blog.youkuaiyun.com/guolin_blog/article/details/9991569之前也是由于周末通宵看TI3比赛,一直没找到时间写博客,导致已经有好久没更新了。惭愧!后面还会恢复进度,尽量保证每周都写吧。这里也是先恭喜一下来自瑞典的Alliance战队夺得了TI3的冠军,希望明年中国战队能够虎起!开始进入正题,我们都知道,Andr转载 2013-11-23 11:55:19 · 607 阅读 · 0 评论 -
Android Service完全解析,关于服务你所需知道的一切(上)
转载请注明出处:http://blog.youkuaiyun.com/guolin_blog/article/details/11952435相信大多数朋友对Service这个名词都不会陌生,没错,一个老练的Android程序员如果连Service都没听说过的话,那确实也太逊了。Service作为Android四大组件之一,在每一个应用程序中都扮演着非常重要的角色。它主要用于在后台处理一些耗时的逻辑,转载 2013-11-23 11:15:59 · 624 阅读 · 0 评论 -
android--Touch Events 你应该记住的一些事
The onInterceptTouchEvent() method is called whenever a touch event is detected on the surface of a ViewGroup, including on the surface of its children. If onInterceptTouchEvent() returns true,原创 2013-11-22 21:55:29 · 655 阅读 · 0 评论 -
Sample Apps by Android Team 下载
git clone https://code.google.com/p/apps-for-android/阅读源码,从现在开始!原创 2013-11-06 22:33:35 · 472 阅读 · 0 评论 -
android--Content Provider 你应该记住的一些事-1
[1].Content providers are the standard interface that connects data in one process with code running in another process.========== ========== ========== ========== ========== ==========原创 2013-11-21 16:40:10 · 842 阅读 · 0 评论 -
android--service 你应该记住的一些事-1
Caution: A service runs in the main thread of its hosting process—the service does not create its own thread and does not run in a separate process (unless you specify otherwise). This means tha原创 2013-11-18 22:34:37 · 1098 阅读 · 0 评论 -
android--service 你应该记住的一些事-2
[1].However, if you want the service to send a result back, then the client that starts the service can create a PendingIntent for a broadcast (with getBroadcast()) and deliver it to the service原创 2013-11-18 23:17:17 · 919 阅读 · 0 评论 -
android--Process and Thread 你应该记住的一些事
[1].If an application component starts and there already exists a process for that application (because another component from the application exists), then the component is started within that proc原创 2013-11-19 20:59:18 · 1348 阅读 · 0 评论 -
9-patch for Android UI
A simple guide to 9-patch for Android UIWhile I was working on my first Android app, I found 9-patch (aka 9.png) to be confusing and poorly documented. After a little while, I finally picked up转载 2014-02-13 15:18:57 · 909 阅读 · 0 评论