Hello everyone, today I want to share with you the development of the launcher desktop shortcut icon. We all know that the shortcut icon consists of two parts: the application icon and the Application name. In fact, the shortcut icon in launcher only inherits the textview control and re-draws it to make the background light gray (I don't know what the color is) the elliptical background, the displayed text
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. xml of lancher. Its source code is:
3. layout
(11) Android Launcher customization: 4.4 latest desktop single-layer, dual-layer switch function, androidlauncher
Recently, it took a few nights to import the latest 4.4 desktop to eclipse and fixed some errors. It can finally run.
It is found that the single screen code on 4.4luancher has changed.
Find it and configure it in LauncherAppState.
You can achieve single-or double-layer switching.
Public static boolean isDisableAllApps (){// Returns f
Some applications, such as many. SH programs, if you want to add to the dash home in Ubuntu for a quick start, you'll need to find the/usr/share/applications directory, which contains all the starter in the dash, Add the program xxx you need to it. The specific steps are:
command-line Action content:
Cd/usr/share/applications
sudo gedit xxx.desktop
Open the text content that you want to edit:
[Desktop Entry]
version=1.0
name=xxx
exec=/home/username/xxx.sh (This is the file path na
Transferred from: http://blog.csdn.net/lsbhjshyn/article/details/18764613Working environment encountered network is not normal, detection is a server exception to send packets, using the netstat command to view, found a program. This process state of IptabLex is an exception connection. Cannot be effectively purged, so you want to know which directory this program is in zombie state.[Email protected]/]# NETSTAT–ANP | LessWhen the problem occurs, the status of the process is:[[email protected]/]
GNOME or Linux KDE) (defined by "Onlyshowin") or not (defined by "Notshowin"). For specific definitions, refer to "Desktop specification Menu" [4].
Keyword "x-suse-translate": [SuSE Linux specific]The keyword "x-suse-translate" is unique to SuSE Linux (http://www.novell.com/linux/). "X-suse-translate" complies with the SuSE RPM package style. The "X-suse-translate" value indicates whether the keyword "Name" and "Genericname" are to be translated. For details, please refer to "SUSE Package Con
1. Create a file named "Eclipse.desktop" in/usr/share/applicationsThe specific command is: Gedit eclipse.desktopand add the following content:[Desktop Entry]Encoding=utf-8Name=eclipse PlatfromComment=eclipse IDEExec=/home/lgh/desktop/eclipse/eclipseicon=/home/lgh/desktop/eclipse/icon.xpmTerminal=falseStartupnotify=trueType=applicationCategories=application;development;Attention:Exec=/home/lgh/desktop/eclipse/eclipseicon=/home/lgh/desktop/eclipse/icon.xpmThis place to be modified for your install
Tips: If you want to get updates in time, please use the Ubuntu main source, there will be a delay in the image source. Enter sudosoftware-properties-gtk in the terminal and select "master server ". After Ubuntu11.04Beta1 was released, UbuntuNatty in development made another big update today. The Unity version was upgraded to 3.8.6 [Changelog], which fixed a large number of bugs and brought about
Tips: If you want to get updates in time, please use the Ubuntu main source, there will be a delay
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, and now share with you:Path: Frameworks\base\policy\src\com\android\internal\policy\impl
Recently, I found it interesting to add shortcuts. I checked the information and wrote a demo-a simple example. There are two buttons in this example, click "add this program to shortcut". A shortcut is added to the desktop of the mobile phone, and a shortcut is added to the launcher. Click "Exit" and the prompt is displayed: the toast prompts "Exit program ". Knowledge sorting: There are two ways to add shortcuts to the Android platform: one is Deskt
By he minggui (http://blog.csdn.net/hmg25) reprint please indicate the source
I saw an article on the Internet: the Launcher's Dock detail Article http://news.wangmeng.cn/detailNews/2716-the-article-details-launcher-dock which implements a Mac-like dock. I think it's quite interesting, so I just copied one.
You can dynamically add shortcuts. By default, the AllApp button is included and the icons are displayed in the center.
The icons on the DockBar
. Intent. Category. launcher do not need to be added to the filter of Android. Intent. Category. Default. Of course, it is no problem to add the filter.
If the defined activity accepts implicit intent, the android. Intent. Category. Default category must be added to intent filer.
Android. Intent. Category. LauncherWhat is the specific function? There is no difference between adding or not in XML. Who can explain it!
Recently in the launcher to see the source code, should be able to learn something, bit by bit, think of what is whatFirst, there's a code to work with.Https://github.com/callerge/AtoZLauncher Read the Readme will know how to do, declare launcher, remove invalid permissions, plus version 17-201.onKeyDown There is a such a way of writing = "Long press the Menu key, long press the home button these can do som
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 desktops. Let's talk about how to implement it:
1. Compile and run the
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,
Android Metro-style Launcher development series 2, androidmetro
Preface:Dear friends, please forgive me for writing this series of second blogs after so long, so I cannot publish new products. If you don't talk nonsense, let's review them first: posted on my previous blog!
Launcher main framework implementation:The Launcher main framework I choose is the ViewPa
Android. Intent. Category. LauncherWhat is the specific function? I will make a small example to help you understand
An application can have multiple activities, each of which is at the same level. Which activity is the first to start when a program is started? Some programs may need to be displayed in the program list, while others do not. How to define it? Android. Intent. Action. Main determines the activity Android. Intent. Category. launcher tha
If everyone can change the root password, then the password does not exist. So how do you prevent others from entering single-user mode through the Grub launcher to modify the root password???Environment: Virtual Machine vmware8.0.4 CentOS 6.3Set the password to enter the Grub boot program via the Grub-md5-crypt command650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/71/wKioL1gTPYKB2rqsAAAr0uaba14104.png-wh_500x0-wm_3 -wmp_4-s_3540106284.
http://blog.csdn.net/java20100406/article/details/6108419MAVEN's plug-in collection:Version Description: Eclipse 3.6 (ECLIPSE-JEE-HELIOS-WIN32) Jetty Launcher PluginDownloading and installing the eclipse process does not describe. Start eclipse,help-> Install New software,The available software interface appears, select Add, we need to create a new Jetty plug-in (Jetty Launcher plugin) Update site, enter Na
If you try to change the Chinese path, please refer to the blog of the Lost Youth:"The Eclipse executable launcher is unable to locate its companion shared library" error is resolved as follows:First, open the configuration file Eclipse.ini under the Eclipse directory.Second, change the path below--launcher.library and-startup to the current correct path. If the storage path of my eclipse is changed from D:\Program files\ to D:\, the "program Files\"
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.