Android uses the animation to achieve the jitter of interface components. The following API demos provided by the system:
The simple jitter effect has been achieved in the \ Android-SDK \ samples \ Android-8 \ apidemos directory:
The specific
In the layout, the textview text is too long and you want to add a scroll bar for it so that the text can be displayed in a scroll manner.
The method retrieved through the network is actually very simple. It is to add the Android: scrollbars
Recently, when working on a project, we need to adapt to the landscape and landscape. For the data and overall effect, we have added the following in the activity Configuration:Android: configchanges = "keyboardhidden | orientation"
However, after
Public void pullcreatexml () throws illegalargumentexception, illegalstateexception, ioexception {// person person1 = new person (1, "Lucy", 15 ); person person2 = new person (2, "Tim", 20); List Persons = new arraylist (); persons. add (person1);
Px:
That is, pixels. 1px indicates a physical pixel on the screen;
The unit of PX is not recommended because the actual size of a PX image may be different on different mobile phones, as shown in.
DP:
This is the most common but hard to
If the android application installation package APK is developed on a later Android jar, it cannot be run on a later Android SDK, therefore, we need to replace the developed application with an android jar package of a lower version to re-compile an
Using Open Source dictionary API, developed an android dictionary, using dict.cn open API interface, the basic principle: Send word requests to dict.cn. http://dict.cn/ws.php? Q = wordword indicates the word you want to query, for example, to query
Use localized ResourcesHow to create default ResourcesPut the default text of the application in a file with the following position and name:res/values/strings.xmlText strings in RES/values/strings. xml should use the default language, which is the
What is intent
Intent is a run-time binding mechanism, which can be used to connect two different components while the program is running. With intent, your program can express a request or willingness to Android. Android selects appropriate
UseOpenfileoutput () of activity ()Method To save the file. The file is stored in the mobile phone space. Generally, the storage space of the mobile phone is not very large. It is okay to store some small files. If you want to store large files such
Fragment is a part of the activity interface or an action. You can combine multiple fragment members into an activity to create a multi-faceted interface, and you can reuse one fragment in multiple activities. You can think of fragment as a
Address: http://developer.android.com/tools/testing/service_testing.html
Android provides a test framework for the service, allowing the service to run in isolation and providing simulated objects for use. The test case class used by the Test
Today, I plan to add optionmenu to my tabactivity. I thought it was a few minutes. After I added it, I found that there was no response after I pressed the menu key. The code added is as follows:@ Overridepublic Boolean oncreateoptionsmenu (menu) {//
// In this way, only files with permissions of common users can be browsed.
package talent.fm;import java.io.File;import java.util.ArrayList;import java.util.Arrays;import java.util.HashMap;import java.util.List;import java.util.Map;import java.util.
Java provides a complete Io stream system for file operations. Android also supports accessing files in mobile phone memory in this way, including internal memory and external memory.
In Android, you can create a file to save data on the storage
Insetdrawable indicates that a drawable is embedded into another drawable, and some padding is left inside it. This is similar to the padding attribute of drawable. The difference is that padding indicates the margin between drawable content and
A transitiondrawable is a special drawable object that can fade in and out between two drawable resources.
Each under a node represents a drawable resource. There can be only two . Previous conversion callstartTransition(). Backward,
For another drawable resource, perform the size change drawable based on the current level.
File Location:
res/drawable/filename.xml
The file name is the resource name.
Compile Data Type:
Point
ScaleDrawablePointer.
It is often seen that many software have built-in shake functions. Even if it is not obvious that it is a shake, there are many similar functions, such as shake food, shake and add friends,
Of course, you can also shake and add friends,
In fact,
In this chapter, we will learn the XML parser in Android. Android comes with three XML parser, including pull, sax, and Dom parser, both pull and sax adopt event-driven parser. The advantage is that the memory usage is small and the processing speed
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