I have been taking over Android for a year. Since I had a relatively small amount of materials at the beginning and most of them were out of context, I have been in a very understandable status for Android. Now I finally feel the learning experience
Sliding between left and right of the page using a button
Public class jipiao extends activity {/** Called when the activity is first created .*/@ OverridePublic void oncreate (bundle savedinstancestate ){Super. oncreate (savedinstancestate
1. In the android project folder, the main resource files are stored in the res folder.2. Assets folders are native files that are not compiled and processed.Res Folder:
Res/anim/: XML file animation file.
Res/drawable/:
Environment:
Windows XP + VMware + RedHat (UBUNTU)
Note: The environment described in this article is also the development environment of Android native C (JNI ).
1. First download a cross-compilation tool chain version
I just learned about Android and saw that the events in the book have always been fixed. I am not quite clear about this in Java. What kind of Anonymous class should I think, the event can be specified at runtime for flexibility.
So I searched
In AndroidProgramThere are two ways to register a broadcast receiver, the difference is as follows:
Method 1: register in the androidmanifest. xml file
You have registered your own broadcast receiver to receive two types of broadcasts. The
Reprinted please indicate the source:Http://blog.csdn.net/qinjuning
Recently, many new interns from the company looked at their confident but childish faces and thought of themselves last year. Is that true?
What about them now? What have I
Android has been sought after by many people since its open source. Of course, one person is pursuing it because it was developed by Google. For a programmer, the value of a system is not worth mentioning. I am not going to analyze the android
When you write a program, you should get used to the resources required by some programs, such as examples and strings, which are separated and independently stored outside your program code, in this way, you can maintain these resource files
First, we will introduce how to remove the title bar:
First:This is also a common method for getting started.
RequestWindowFeature (Window. FEATURE_NO_TITLE); // remove the title bar.
Note that this sentence must be written before the setContentView
There are many ways to obtain source code on the Internet. Here is just one of my operations. After the previous http://android.git.kernel.org/logs are unavailable, Google will be in the navigation bar.
The source code download function is
We have customized the View, but I have never thought of a problem: Where is the (0, 0) coordinate in the View, that is, the origin coordinate ?? Are we sometimes confused? Next we will study the origin coordinate problems in the View.
1. View
1. First locate the debug keystore location:
Open Eclipse ---> Windows ---> Preferences ---> Android ---> Build
This is generally the path C: \ Documents ents and Settings \ Administrator \. android \ debug. keystore
2. Run
Keytool-list-alias
RelativeLayoutImportant attributes used:
Class 1: the property value is true or false.Android: layout_centerHrizontal horizontal centerAndroid: layout_centerVertical vertical centerAndroid: layout_centerInparent is completely centered over the
I. Log output
You can call up the Log Cat interface in Window> Show View> Other> Android> Log Cat.
Common logs: Common running information: I error message: e
Output Log: Log. I (TAG, strings). The TAG is the log identifier, which is usually
Generally, when creating controls, we complete them in the XML file. The implementation is quite convenient, and the modification can quickly see the effect, however, a major disadvantage is that you cannot dynamically create controls. For example,
By default, the Android simulator looks like this:
The most prominent problem on the screen is obviously its ugly interface. The simulator window occupies a huge space on the screen and has a screen keyboard for no reason.
If you have never used a
For Android 2.1
| -- Makefile
| -- Bionic (bionic C Library)
| -- Bootable (startup guide code)
| -- Build (stores basic development kit configurations such as system compilation rules and generic)
| -- Cts (Android compatibility test suite Standard)
The drop-down list is a spinner. This is easy to use. Define a tag in xml and specify the ArrayAdapter ,
You must specify the drop-down layout for the Adapter. For the drop-down data, the book uses static arrays. I changed it to read from the
Just learned listview, refer to online tutorials
Http://www.cnblogs.com/allin/archive/2010/05/11/1732200.html
Implemented a listview by myself, using SimpleAdapter, slightly changed
The Code is as follows:
Public class SListViewActivity extends
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