Here we extract the Code related to the workspace of the android launcher program and use a simple code to demonstrate how the launcher program implements multiple pages and different
Switch between pages. This sample code runs in SDK 2.1 and sets the screen size of WVGA.
First, let's take a look at the program running effect to give us some perceptual knowledge.
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. It is a http://download.csdn.net/detail/xianming01/4383598
In the previous article "android launcher source code parsing 01: Ui layout details 1", we introduced the theme UI
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
Objective:Everyone small partners, again to the weekly update article time, originally was Sunday can send out, this is not to catch the tomb-sweeping day, the Queen said, two days before the Qingming Festival to play with her, only left me Monday afternoon half a day to write a blog, where there is a queen where there is oppression ah have wood! All right, gossip. Less, on a blog (Android Metro style of the Launc
1) We all know that the workspace is composed of celllayout. Celllayout is divided into four rows and four columns. A boolean moccupied two-dimensional array is used to mark whether each cell is occupied. In attrs. XML, shortaxiscells and longaxiscells are defined to store the number of cells in the X axis and Y axis respectively. Initialize in the celllayout constructor.2) The internal class cellinfo is a static class and implements the contextmenu.
In Native launcher, long-pressed desktop triggers many kinds of behavior. Its categories include: 1. Blank desktop; 2. Desktop content (folders, shortcuts, folders, etc.); 3. Existing desktop controls (two screen switches on the left and right, and all App list buttons) so we can easily understand launcher. the onlongc
Preface: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 Android Metro style Launcher Development Series first Wrote how to configure the Android development environment, just with text and pictures to show the development of
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'
Icon background and default configuration for android launcher development1: Then I checked the desktop icon loading process myself:When the desktop is loaded for the first time, an xml configuration file is read by default to complete the configuration. The configuration file is in the Launcher directory,Path: \ Launcher
activity now"); Launchintent.setclassname (splashactivity. this, "com.embarcadero.firemonkey.FMXNativeActivity"); StartActivity (launchintent); } } } }). Start (); } } Start debugging, and you'll automatically exit in three seconds. Back to Delphi XE5, we'll build the SplashScreen project once and click Project->deployment to enter the Release Management module Click Deploy Publish once, then open the project directory into the android\debug\splas
These days there is a need to set their own application to the form of launcher, set after the OnCreate will be launched two times, in the Internet to find the data after the screen set the result of the first said: In the mainacitivity set up Android: Configchanges= "MCC|MNC" can solve the problem.Today, when I look at log, I find that Launcher activity is OnDes
Objective:Everyone small partners, again to the weekly update article time, originally was Sunday can send out, this is not to catch the tomb-sweeping day, the Queen said, two days before the Qingming Festival to play with her, only left me Monday afternoon half a day to write a blog, where there is a queen where there is oppression ah have wood! All right, gossip. Less, on a blog (Android Metro style of the Launc
Develop an android driver that can count words (1)
5. Specify Driver-related information
Although it is not necessary to specify this information, a complete Linux driverProgramThe driver-related information is specified. You must specify the following information for the Linux driver.
1. Module Author: specified using module_author macro.
2. Module Description: Use the module_description macro to sp
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 diagram of Launcher2 source code is as follows
Preface: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 Android The Metro Style Launcher Development Series first wrote how to configure the Android development environment, just to show the preliminary design and product r
Celllayout is designed to store controls of different sizes. To better control the addition and deletion of items, select to directly inherit viewgroup to implement this control.
When we press the desktop for a long time, there are two situations: one is that we press an item, and the other is that we press an empty position. Here, there is a problem.
1. How do I know whether the current position is a blank area or item?
2. Even if I know the coordina
From: http://blog.csdn.net/android_tutor/article/details/5486804
Recent studiesLanucher, Read the source code, and foundSlidingdrawerThis class is also called the "drawer" class. It is easy to use, includingHandle, AndContent.
HandleWhen you click it,ContentEither drawer or close drawer. The specific steps are as follows.
1. CreateAndroidProject, namedSlidingdrawer.
2. Prepare materials. Here my icons are usedLauncher2Put the icon inDrawable-hdpiT
A 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 color is white. Textview has the Android: drawabletop; drawablebottom (not all of them are written here) attribute to dis
1. To solve this problem, you must first understand what is implicit (hidden) intent and what is explicit (explicit) intent.
Explicit intent explicitly specifies the acitivity to be startedFor example, the following JavaCode:Intent intent = new intent (this, B. Class)
Implicit intent does not explicitly specify the activity to startInstead, you can set some intent filters to enable the system to filter the appropriate acitivity.
2. Which activit
(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 (als
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.