The last two weeks of research on Android applications, learn the basics of Android application development, basic controls, basic layouts, basic animation effects, data storage, HTTP access to the Internet, and more.
Android has a concept called
The meaning of Relativelayout:
The relative layout of each part of the layout. Make the interface space reasonable use.
One, ScrollView limitation:
Sliding can only be linearlayout, even the entire layout can not have relativelayout. This makes
First step: First add the following code to the Androidmanifest.xml:
;/application>
The package specified above targetpackage is the same as the applied package. is the name of the package where the test class resides;
Step Two:
Background information:
You need to do three things before you do android: First, download the Android SDK (you can download it here), second, prepare the project editor (I recommend using Eclipse) third, download the Android Eclipse plugin.
After
Introduced
The application of various layouts in Android and the implementation of menu effects
Application of various layout methods, Framelayout, LinearLayout, Tablelayout, Absolutelayout, Relativelayout
Configures the context menu for the
Introduced
Build Android's development environment and write a simple sample program
Build Android development environment under Windows
Directory structure description of Android project
Write a simple Hello world program
First, build the
Recently, Google developed the open source smartphone operating system Android more interested in, so according to the information on the Internet downloaded eclipse,android SDK3.0, and according to the steps of the instructions to configure the
There are many examples in the Android SDK, in which Apidemo details the main API for the Android platform, divided into
App
Content
Graphics
Media
OS
Text
Views
A few large classes, each of which is divided into smaller classes, have about 2
ACTIVITYINSTRUMENTATIONTESTCASE2 is primarily used to test the functional testing of one or more activity, using and ultimately applying the same operating environment to test activity functions. You can use the normal system context (not a mock) to
Here is a basic introduction of Android development of some of the basic knowledge, in the development of practical applications, the most commonly used references are:
The Developer ' s Guide
Android References
Android Resources
The last one is
In the previous example, we overlooked an important principle, in code and layout, to use string constants directly, such as:
Android:id= "@+id/btnpattern"
Android:layout_width= "Wrap_content"
Android:textcolor= "@color/black"
Android:checked=
Dialog generally refers to a small window that can be displayed in front of the activity, the current activity loses focus, and dialog accepts user input, which can typically be used to display messages or accept user input, and so on. It is
Replace RadioButton with Button, similar to new brush.xml in Res/layout:
android:orientation= "Vertical"android:background= "@drawable/white"Android:layout_width= "Fill_parent"android:layout_height= "Fill_parent" >Android:id=
An activity in an Android application is a basic module with a screen display that supports user interaction, similar to the MIDlet in Java me, and the form in Windows applications. For example, it can be a dial-up, sending a mail UI. Each activity
If you upgraded ADT to 17 and found that the original application could not be started, ALVIKVM (2658): Unable to resolve superclass of XXX error:
And the Apidemos can still run normally. Google later found that, starting with ADT 17, if you
Intents The code for this example is very simple:
Intent Intent = new Intent (intent.action_get_content);
Intent.settype ("audio/*");
StartActivity (Intent.createchooser (Intent, "select Music"));
It uses the intent.action_get_content
Wallpaper Describes how an activity can use the style to wallpaper the system as the background of the current activity.
This is the definition of wallpaperactivity in Androidmanifest.xml:
Android:label= "@string/activity_wallpaper"
The redirection sample involves three Acitivity:redirectenter, Redirectmain,redirectgetter. The main activity of the example is Redirectenter, Redirectenter starts the Redirectmain, and the activity determines whether or not the control of the
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