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, 1, 2, 3,
relatively large, but the modifications to the launcher analysis are common.
This is based on the launcher interface modified by android4.0.3. Because the program is used in vehicle navigation, the icon is enlarged. Deleted unnecessary things.
The following is an analysis of the page modifications.
1. default configuration file on the Interface
When
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
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
Originally, this article should still write the implementation principle of the item drag in launcher. However, since studying launcher, it has not been implemented before, and now it is all inspired. This is not the case. A month ago
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
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, 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
After the boot is complete and unlocked, if there is more than one launcher on the Android system, a selection box pops up to let the user choose to enter a launcher. If the user does not want to choose, but want to go directly to a default launcher, how to modify?Note: This modification is not valid for Google Now
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
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
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
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
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
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
1. First, let's take a look at the structural diagram of the launcher activity view (obtained by hierarchyviewer. BAT ):
2. Let's take a look at layout/launcher. XML, layout-Port/launcher. XML, and layout-land/launcher. xml.
Xmlns:
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.