Date: 2010-11-22
ArticleType: original
Author: Ethan. Zhao
Please declare the source of the post.Preface:
The struggle for encryption and decryption has never been stopped since software was available and will continue. Of course, the android
1. layout is an attribute in linearlayout, while tablelayout is a subclass of linearlayout. Therefore, layout_weight can be used in these two Laight S.
2. In reality, most developers do not want to change the layout ratio due to content changes.
It takes a long time to start Android emulator, several minutes or even ten minutes.
We can use the snapshot function to quickly start the android simulator.
1. In the android Virtual Device (AVD) Management window, select the "snapshot" option.
This article describes the Relief Effect of image special effects. As before, pixels are processed, and algorithms are universal.
Algorithm principle: Use the RGB values of the previous pixel to subtract the RGB values of the current pixel, and add 1
Text can be moved as long as it is within the image range.
Package xiaosi. gettextimage; import android. content. context; import android. content. res. resources; import android. graphics. bitmap; import android. graphics. bitmapfactory;
From: http://hualang.iteye.com/blog/1059428
When I was doing something today, I made several images with PS, but changed the suffix, So I encountered an error:
Error description:
At first, there was an error at the project in eclipse, but there was
Do not use setimagebitmap, setimageresource, or bitmapfactory. decoderesource to set a large image. After decode is completed, these functions are implemented through the createbitmap on the Java layer and consume more memory.Therefore, use
Toast is a mechanism used by Android to display information. Unlike dialog, Toast has no focus and the display time of toast is limited, after a certain period of time, it will automatically disappear.
1. Default effect:
Code:Toast. maketext
How does one achieve manual page flip on a mobile phone? Let's introduce you here.
In general, viewflipper is used to implement this special effect.
viewflipper
What is this control? Pay attention to viewfilpper for viewing blog Android study notes.
To modify the default setting settings, You need to analyze the setting source code, as well as data storage and reading.
Android applications are stored in the packages/apps directory.
The main directories and files are as follows:
Here, resouce
As we all know, when you play the game, the screen will be black after you press the power key. At this time, the system will automatically destroy the game activity, causing you to press power again and unlock it, the result shows that menuactivity
The most frequently asked questions in my blog are related to oauth. There are many problems, many of which are stuck in this step.
For this reason, it took some time to write a complete example of oauth authentication for the Android version of
Role of attributes in Layout
Display Unit: pixel, dip, and SP
1. Dip: Device Independent pixels (device independent pixel) different devices have unused display effects. This device is related to hardware, which is generally used
We recommend
AndroidThe mobile phone operating system needs to write and implement various functions in the simulator. More prominent in interface operations
The andorid interface needs to be written in the XML of RES/layout. Generally, an XML corresponds to
In other words, it is better to draw a picture to make it easy to understand !!! Really! Come on ~~ Upload the image first ~~!
(1) first, clarifyAndroidCoordinate System in:
In the upper left corner of the screen
Coordinate System Origin(0, 0
5.1 overview of the manifest configuration file
1. With every Android Application
2. defines the application name, version information, and application components on which the application depends, as well as the license permissions and other
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