This article describes how Android solves the back event that dialog does not capture activity when it pops up. Share to everyone for your reference. The specific analysis is as follows:
In some cases, we need to capture the back key event, and
This example describes the service usage of Android development. Share to everyone for your reference. The specific analysis is as follows:
Service is a long life cycle and no interface program.
The following is an example of playing mp3 to learn.
This article summarizes the Android development commonly used tags in more detail. Share to everyone for your reference. Specifically as follows:
Android in InputType
The InputType property in Android plays an important role in the style of a
This article illustrates the parcel mechanism of Android development. Share to everyone for your reference. The specific analysis is as follows:
In Java, there is a serialization mechanism. But on the Android device, the new serialization mechanism
The example in this article tells about Android getting the currently running class name or method. Share to everyone for your reference. The implementation methods are as follows:
public static String Getcurrentmethodname () {
int level =
Common, record.Effect Chart:
First create a new XML file Bg_gradient.xml
Copy Code code as follows:
Android:startcolor= "#55FF0000"
Android:centercolor= "#99A73C3C"
Android:endcolor= "#99000000"
Android:angle= "270"
The implementation uses a background image to do the loop from left to right to translate the animation.
1, the implementation of two animation XML file, a starting position in -100%p, one in 0%p. Set repeat property to loop, repeat.
Copy
The example effect is as follows:
Mainactivity.xml
Package Sn.qdj.popupwindowdemo;
Import android.support.v7.app.ActionBarActivity;
Import Android.os.Bundle;
Import android.view.Gravity;
Import Android.view.View;
Import
When there is a lot of list items, and each item can go to other activity or fragment, the location of the list before saving is a fairly good feature,
Today I studied how to save the browse location and found that there are 4 related methods in
First contact with the Android application project, in the project quickly when the planning requirements add a highlight, each time is directly from the online Baidu, now do the game, but still this demand, here to back up a convenient follow-up
To hide the title bar you need to use a predefined style: Android:theme= "@android: Style/theme.notitlebar".Hide status bar: Android:theme= "@android: Style/theme.notitlebar.fullscreen".
Objective
Gallery's item uses a imageview+textview, and selector is set, and the item's state does not change when the SetSelection setting is used, which is present in the 2.2/2.3 system, The high version, like 4.0, does not exist.
Body
The
During the development of Android software, time consuming operations are often encountered. To make mobile apps run smoothly, time-consuming operations need to be done in a new thread. So what are the time-consuming operations of Android mobile
Objective
Previous articles have introduced Activitygroup, many people ask the problem of nested use, the same demand in fragment also exist, fortunately in the latest Android support package has supported this feature! Here we skip the
have been working on the Android application layer, and have recently begun to study the Android platform, mainly in the Android frameworks layer and the system library layer. Here is my own understanding, comprehension, and hope to share with
Objective
Asynctask is a good thing to handle most application threads and update UI tasks because it uses a static thread pool internally, if you have a bunch of asynchronous tasks (such as global timing update data, Multiple asynctask in the same
Objective
TextView's Drawableleft, Drawableright, and drawabletop are a common, easy-to-use attribute that can be placed around the top and bottom of the text without using a more complex layout. I also often like to use the RadioButton of these
1. Case Effect Chart
2. Prepare material
Progress1.png (78*78) progress2.png (78*78)
3. Principle
Use a picture as the background image of ProgressBar (generally using lighter color). The other is a picture of the progress bar (generally
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