Understanding LooperLooper is used to add a message queue (MessageQueue) to a thread, and to loop through a tool that, when there is a message, evokes a thread to process the message until the thread is finished. Looper is not normally used because,
Your own summary of the problems and methods that often appear in Android1. Error: Build FAILEDD:\workspace\ganji\build.xml:144:the following error occurred while executing this line:
d:\workspace\ganji\build.xml:271:unable to delete file
Android animation to achieve switch button animation (property animation translation animation), recently done projects, according to the project needs, there is a function to achieve similar switch animation effect, through their own thinking and
Android is probably the simplest of the mobile operating system, and we just need to listen to a boot-initiated broadcast (broadcast). First write a receiver (i.e. broadcast listener) and inherit Broadcastreceiver as follows:
View Source
Print?
There is a way to prevent the parent layer from view interception touch events, which is to invoke GetParent (). Requestdisallowintercepttouchevent (True);
Once the underlying view receives the touch action and calls this method then the parent
Theme theme is used to set the UI style of the interface, you can set the entire application or an activity of the interface style. The following theme are built into the Android SDK and can be categorized by whether the title bar and status bar
In Android development, you typically use an XML format to describe a layout file. For now, there are so few people familiar with Android layouts and landscaping that there are serious faults. Most businesses, in fact, are programmers themselves.
I saw an iOS component Pendulumview on the Internet and realized the animation effect of the pendulum. Because the native progress bar is really not good-looking, you want to be able to customize the view to achieve this effect, can later be used to
Android when it started, really let some small number of software fire A, cut fruit, Tom Cat, blowing skirt is one of the representatives, of course, there is a strong practical shutdown software, we go to Baidu search.
Screenshots:
I.
Overview
have been trying to write an article on the Android event distribution mechanism, but has not written, these two days is just the weekend, have time, think about writing a bar, or always only stay at the level of use but not understand its
This article illustrates the saving and reading function of the Android implementation file. Share to everyone for your reference, specific as follows:
Note: There are Getfiledir () and Getcachedir () in the activity; method to obtain the current
God, this article finally said how to customize the permissions, the left looking forward to the right, in fact, this custom permission is quite easy. For the sake of narration, I will use two apps as an example to illustrate this.
Permission
The author found that in many applications, there are automatic access to the Verification code function: Click to get the Verification Code button, received SMS, the current application does not need to exit the program can get to the text of the
The example in this article describes the Android implementation of the automatic start service or app. Share to everyone for your reference, specific as follows:
Step One: First create a broadcast receiver, refactor its abstract method OnReceive
This article illustrates the simple learning example of Android programming view. Share to everyone for your reference, specific as follows:
View, which is a superclass of Android, contains almost all of the screen types. Each view has a canvas for
Recently has been learning custom view-related knowledge, today brings you the realization of the QQ health interface. First look at the effect of the picture:
You can set the number color, font color, motion number, motion rank, average movement,
In this paper, we will add a text box to the right side of the Sideslip menu, and can make the text slide up and down and the menu scroll. It is recommended that you take a good look at the distribution mechanism of the Android touch event, which I
For many developers, the cool UI effect is the most attractive, and many people are learning some of the more well-known UI libraries because of these cool effects. The premise of the cool effect is that you have to understand the custom view, as 90
No more nonsense to say, directly to everyone to paste the code:
The specific code looks like this:
public class Miuiutils {//Detect MIUI private static final String Key_miui_version_code = "Ro.miui.ui.version.code";
private static final
Play QQ or micro-letter of the Basin friends know that these chat tools to set the avatar, the general solution is to choose from the local image gallery or camera photos, and then according to their favorite interception of pictures. The above
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service