问题
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