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's take a look at the layout file launcher. xm
-sdk_r20-linux.tgzR20 version of Windows: Http://dl.google.com/android/android-sdk_r20-windows.zipMac version of R20: Http://dl.google.com/android/android-sdk_r20-macosx.zipUnzip the downloaded SDK to a directory, such as the ~/software/directory,terminal execution: sudo gedit ~/.BASHRCat the end, add the following:#set path for Android SDK toolsExportpath= $PATH:/home/leo/software/ Android-sdk-linux/tools Export path= $PATH:/
---restore content starts---Small dream today to share with you the Windows Phone 8.1 common launcher instances, including:
Phone launcher
SMS Launcher
Mail launcher
Add Appointment | Memo to Calendar
Map Launcher
Map Route
As mentioned in my previous blog, all the desktop item data of launcher is stored in the launcher. DB/favorites table.When launcher is started, the loadeworkspace function will query all the data in the database and display it. The data loading process of this desktop item is described in detail in my blog launcher-sta
no space is found, the system prompts the user that the screen does not have enough space to accommodate.
With the above analysis, the following describes how launcher completes each step.
When the user presses the desktop for a long time, the motion_down event is passed to celllayout. In the onintercepttouchevent method of celllayout, the user determines whether the current long press is in a blank area. If yes, convert the current coordinate to the
Unlike other Linux distributions, Ubuntu has been using Unity as a desktop environment for years, and the most prominent feature of this environment is the Launcher Bar (Launcher) on the left side of the desktop. Starting with version 16.04, Ubuntu provides a command-line option to move the Launcher launcher to the bot
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. android: name = "com. android. launcher2.LauncherApplication"3. android: l
Objective:Dear friends, please forgive me for so long to start writing this series of the second blog, no way to busy new product release, good nonsense not to say, first review: In my previous blog http://www.cnblogs.com/2010wuhao/p/4363041. html wrote how to configure the Android development environment, just with text and pictures to show the development of Metro style Launcher preliminary design and product requirements, this article will be on th
Unlike other Linux distributions, Ubuntu has been using Unity as a desktop environment for years, and the most prominent feature of this environment is the Launcher Bar (Launcher) on the left side of the desktop. Starting with version 16.04, Ubuntu provides a command-line option to move the Launcher launcher to the bot
Ubuntu is loaded with Webstorm and PHPStorm, it's a hassle to start.sh webstorm. SHHow do I add them to the launcher?CD /usr/share/applicationsVI webstorm.desktop #如果希望不同语言环境下显示不同的应用名字, you can name[zh] = Chinese name =webstorm Comment=webstorm # EXEC represents the left-click Application path and replaces the following username Exec =/home/username/soft/webstorm/bin/webstorm with you
Taking Phpstorm as an exampleStay the fox.1. creating files and adding contentsudo vim/usr/share/applications/phpstorm.desktopAdd the following content[Desktop Entry] Name=phpstormname[zh_cn]=phpstormcomment=phpstorm PHP toolexec=/home/fox/program/phpstorm/bin/phpstorm.shicon=/ Home/fox/program/phpstorm/bin/webide.pngterminal=falsetype=applicationcategories=application;development; Startupnotify=trueName Sh
Add an app to the launcher and set the icon in Ubuntu
Some applications (for example, many. SH programs) If you want to add a quick start to the dash home in Ubuntu, you'll need to find the/usr/share/applications directory, where all the initiators in the dash are stored. Add the program xxx you need. The following steps are as follows:
command-line Action content:Cd/usr/share/applicationssudo gedit xxx.d
Atitit. design of launcher based on virtual machine --java Launcher java generation exeExe4j vs Nativej1. Step1 Read configuration file 11.1. Regular mode , allinone exe mode 11.2. Gene EXE DIR CFG 32. JRE directory configuration and search 33.-classpath-djava.ext.dirs jar and native DLL configuration 54. Main class configuration 65. The other 65.1. Configuring version Information 65.2. GUI with console s
Sublime text is a code editor, and I use it primarily to edit Python. Here is a simple description of the Linux installation process it!1. Add a sublime Text3 warehouseFirst press the shortcut key ctrl+alt+t open the terminal;In terminal input:sudo add-apt-repository ppa:webupd8team/sublime-text-3Press ENTER after a lot of information will appear, according to the prompt, press ENTER to continue2. Update the SOFTWARE library:Then in terminal input:sudo apt-get update3. The final step is to insta
The example in this article describes how Android implements the method of adding shortcuts to launcher. Share to everyone for your reference. Specifically as follows:
When we click on the launcher of the desktop in the application, a dialog box appears prompting you to select the desktop component to add, as shown in the following illustration
When you select a shortcut, a dialog box pops up, displayin
When it comes to developing an Android system, there are times when you encounter a need to:Because it is an independent brand, also involves a service in the push, so hope launcher can be fixed, third party can install, but press the home key, must return the system default launcherThrough the analysis of the home key process, found that can be very simple to do
Recently, I am writing a speed dial-up app. The app is very simple. It mainly needs to highlight a fast feature and start quickly. It is best to start it from home screen, of course, the first response was to create a new shortcut on the desktop, but I decided to use another special method, that is, when the user starts the application on the home screen, the left and right touch screens switch between desk
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. So I started to write a series of articles for the purpose of following up with Daniel,
How to set the system to automatically enter the default Launcher when the system has multiple Launcher
[FAQ] How do I set the system to automatically enter the default Launcher when the system has multiple Launcher instances?[DESCRIPTION]When the system has multiple launchers, after the system is started and unlocked,
Launcher is a desktop system of the Android system. It is a very important and complex program. Here we will analyze its code and hope to serve as a reference.1. What is Launcher? Live folder, widget, shortcut, wallpaper, see onActivityResult2. the UI is divided into three parts: workspace, slibingdrawer, and deletezone.3. Menu: see onCreateOptionsMenu in launcher
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.