android Launcher Demo小结

来源:互联网 发布:网络赌托算什么犯罪 编辑:程序博客网 时间:2024/06/06 04:29

在android的development目录中有一个Demo是Launcher的实例Home

路径为:development/samples/Home

也可以这样找:grep "android.intent.category.HOME" development/samples/ -snr

以下是个人的小小总结:

1.注册两个广播接收器:Wallpaper和Application

2.设置壁纸

3.加载带有Launcher标签的ApplicationInfo并保存在ArrayList<ApplicationInfo> 中

4.Demo中是使用GridView控件显示应用程序图标,所以这一步是将ApplicationInfo绑定到该控件中

5.通过读取xml文件加载favorite

6.AllAppButton控件的功能绑定

7.launcher中AllAppButton点击时动画效果所涉及到的变量,函数初始化


0 0