Introduction
I am not too busy recently. I spent some time learning about android application development. After two weeks of study, I also wrote a lot of demo examples, which can be pushed to the demo set of basic controls and basic animation
The android custom control defines an xml button control style and then a control calls it.
Steps:
1. Create a style xml for the button control in drawable:
Java code
Name it greenbtnlay. xml;
2. Call the following in the required
As mentioned earlier, there are two ways to start a Service: startService and bindService. The former has already said how to use it. Therefore, this post is mainly about bind service. Here we will discuss only those services that are bound, and
Android systems can be deployed in the following ways:
1. LinearLayout-linear Layout
Yes. All components on the page are laid in a linear layout,
Vertical:
Android: orientation = "vertical" indicates to form a vertical column;
Horizontal
Android NDK-based learning tour-resource releaseDuring the previous project, because of frequent interaction with the C engine, the entire application suddenly fails. Because I started learning Java, I don't have much idea about actively releasing
Slide your hand and send it to the blog channel .. I don't know if this is the case ........ SinI saw a post on the Forum some time ago and talked about the idea of text message dota ringtones. I just learned about Android, so I tried it and shared
Android provides an Intent mechanism to assist in interaction and communication between applications. Or, to be more accurate, Intent can be used not only between applications, it can also be used for interaction between Activity/Service in an
Process for releasing an Android APK Application
1. Create a keystore file (androidkevin. keystore ):
1. Run the command line to enter the jdk bin directory;
2. Write the following command:
C: \ Program Files \ Java \ jdk1.6.0 _ 10 \ bin>
The following prompt is often prompted during debugging in eclipse:Application XXX is waiting for the debugger to attach
But in general, after a while, it will enter the debugging status. However, sometimes when debugging is performed, the prompt
The work of Injector is to construct the Object Graph. When you call getInstance to construct an Object of a certain type, Injector will automatically create instances of the required classes based on the dependencies between classes.The method for
Create a process service. The interface is not required when the program is run for the first time.
If you want other processes to call this process across processes. you must use the interface type for cross-process access. you only need to remove
In the development of map applications, we often need to draw some text and Icon information on the map (such as the icon at the current position, such as all the points of interest of the KFC store in a region)To be able to draw the information we
Android topic customization and Modification
Introduction: when writing Android apps, We reference a large number of Layout components and styles in xml files in Layout. Sometimes the native components provided by Android cannot meet our needs, in
Have you ever encountered a good app on your mobile phone, but you don't know how to share it with friends? As a programmer, I encountered such a simple problem. I must find a solution. After google and Baidu, I found that all installed apps on
Android. graphics. Bitmap. Config is an enumeration type, which defines four Bitmap formats. At first it was a bit strange. I checked it online and probably specified the reason why the type name is strange.We can see from the name:ALPHA_8: The
I read a lot of articles about AlertDialog and seldom mentioned reuse issues.Generally, a neat call is as follows:
1. Define final flag
[Html]Final int TIME_DIALOG = 1, REPEAT_DIALOG = 2, EVERY_DIALOG = 3,DATE_DIALOG2 = 4;
Final int TIME_DIALOG = 1,
Android Tweened Animation has four types
Alpha: fade in and fade out
Scale: Scaling Effect
Rotate: rotation effect
Translate: Moving Effect
Procedure for using Tweened Animations
1. Create an AnimationSet object
2. Create the expected Animation
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