Recently I have studied lancher, from the text message MMS framework to the bug and demand modification of launcher. Next I will explain the layout of the simplest home screen program of launcher, it gives readers a sense of getting started. The main screen of Android is divided into five screens, which are 0,
: packagename = " Com. apical. Radio " // Package name of the application Launcher: screen = " 1 " // 1st screens and 5 0-4 screens Launcher: x = " 0 " // Position X of the icon. The first value in the upper left corner is 0
First, we will analyze the Launcher layout as a whole. Let's have an understanding of the overall structure of Launcher by viewing Launcher. xml and using the combination of hierarchyviewer layout viewing tool. Use hierarchyviewer to complete the entire desktop as follows:Zoom in as follows: You can see the elements contained in the entire desktop. The top is the
called BindworkspaceIn this aspect we will find that using the callbacks mentioned above, the callback complete data is displayed with the view binding. /** * Binds all loaded data to actual views on the main thread. */private void bindworkspace (int synchronizebindpage) {final Long T = Systemclock.uptimemillis (); Runnable R; Don ' t use these-variables in any of the callback runnables. Otherwise we hold a reference to them. Final cal
Android Metro-style Launcher development series 1, androidmetro
It has been more than three years since graduation. I recall that I have never written a blog in the past three years. I always feel busy and have no time to write. I also feel that writing a blog is useless. However, I can see that many of my colleagues are writing blogs and sharing their own things
Android Metro-style Launcher development series 1, androidmetroIt has been more than three years since graduation. I recall that I have never written a blog in the past three years. I always feel busy and have no time to write. I also feel that writing a blog is useless. However, I can see that many of my colleagues are writing blogs and sharing their own things.
This series of articles will start the android lancher source code analysis. The example is the launcher3 source code that comes with Android 2.3. Its: http://download.csdn.net/detail/xianming01/4383598
This is the first article to introduce lancher's UI layout.
1. Layout
Run the APK and the execution result is:
After pressing the Home key:
2. layout files
Let'
Elastic cut (1) for Android-Launcher development)
The following source code is from Launcher2.3.
1. By default, the main Activity of each application comes
Indicates that when the application is installed to Launcher, click to open the Activity
2. the time sequence d
(Intent.extra_shortcut_intent,new Intent ( This,mainactivity.class)); Setresult (result_ok,returnintent); Finish ();}}}3. The above shortcut can only be added manually, if you want to add shortcut dynamically, you must send the broadcast. Android Launcher2 Source provides the followingThis also means that we send the broadcast must declare the permissions, as well as the designation Also in code calls (also, dynamic addition of shortcut must specify
Foreword: Has been looking at the Launcher module recently, after almost two months study, finally understood the launcher some main function realization, now continues still inGroping state. Did not see launcher, in my case, can only worship, thought that all functions are it to achieve; Getting started, only to discover that launcher's many functions are justIn
The research code starts with: Androidmanifest.xml, custom Application.java.When the Android system starts, the system needs a home application to be responsible for displaying the applications, that is, the application is intended to be the first application launched by the Android system. On Android, this default home application is launcher.To use an applicati
Blog migration-I have migrated my blog to www.ijavaboy.com to better manage it. We are sorry for the inconvenience caused by no updates! New address of this article: Click me
In this article, we will write how launcher achieves the drag and drop of items on the desktop in Android. After studying its mechanism, the brain suddenly gets angry and wants to implement a drag-and-drop listview, after understandin
Launcher is our home, which can be simply understood as a simplified Linux GUI. As a GUI, it must first complete its most essential functions,That is, it must be able to provide categing to all applications (category_launcher). However, as a GUI, it must not only be a good score, but also be a beautiful girl (wallpaper );In addition, it must be highly interactive. If there is no good interaction, just like you have been paying attention to a beauty fo
Step 1: Use our application as the home(That is, press the home key to start your launcher .)
To use our application as home, you only need to add the following in AndroidManifest. xml:
AndroidManifest.xml
Step 2: List the installed applications
List Installed applications as an indispensable feature for launcher. The following describes how to list application
1. Launcher Overall structureDesktop programs do not actually include desktop wallpaper, desktop wallpaper is actually provided by Wallpapermanagerservice, the entire desktop is actually superimposed on the entire desktop wallpaper on the other layer.1.1 WorkSpaceLauncher the root of the entire layout is Draglayer,draglayer inherits Framelayout, so Draglayer itself can be seen as a framelayout. Here is Dock
Reference: 1, Lao Luo's Android tour http://blog.csdn.net/luoshengyang/article/details/66897482,Android core analysis/HTTP Www.linuxidc.com/Linux/2011-04/33966.htmAndroid System Start-up:We want to have a picturesystem architecture Diagram:One, the above with git download the compilation process slightly off, directly to see the final product of our build. The mo
If you want to customize an Android system, you want to use your own launcher (home) as the main interface to replace your android home, you do not want to replace the launcher installed by the user.You can modify the framework to implement this function.
Here we use the source code of android2.1 as an example to descr
In this section, let's take a look at the entire Laucher entry point. What did Laucher do when it loaded its layout file Laucher. xml.We can find the LauncherApplication in the source code, which inherits the Application class. When the entire Launcher is started, it is the entrance of the entire program. Let's first look at how they are configured in AndroidManifest. xml.1. 2.
Tian haili @ csdn
2012-8-21
Launcher plays the appwidgethost role in the entire android appwidget system. This article analyzes how launcher processes appwidgets, including: processing after appwidgetprovider is selected; processing of appwidget information during launcher initialization (including loading for the fir
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.