Understanding custom android launcher

我的未来我决定 提交于 2019-12-17 18:24:55

问题


i want to learn custom android launcher,i donot know how to start,can you give me some advice,some blog link or other example and so on.


回答1:


Your best bet is to start by looking at the sample launcher provided by Google. You can find that in SDK folder:

[Android-SDK]/samples/android-x/Home/

(where x is API level).

They have provided source code for an example home screen and it should give you a good start.

The next thing I would recommend is actually browsing the source of the default android launcher at the open source repo. You will need git to pull that down and you can find there here.

Read about using the AOSP here.




回答2:


here is source code of android 4.4 launcher3

You can easily compile the code in android studio;If you want to compile in Eclipse,just see the git tag GOODBYE_ECLIPSE,use the command in git git checkout tags/[the_tag_name]

Remember this code may crash in android L or above,and the minSDK=16.

Hope to help you to know the android launcher:)



来源:https://stackoverflow.com/questions/5918900/understanding-custom-android-launcher

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!