Let's take a look at the final effect.
1. Set in Main. xml
Place images in the drawable folder of the res folder.
Place in relativelayout
Imageswitcher (display the selected image and set its position in the upper left corner of
System. IMG is a yaffs2 Image
1. UnpackUnyaffs is required to unpackage system. IMG,: Http://code.google.com/p/unyaffs/downloads/listPut the downloaded file in the same folder as system. IMG.Command:
./Unyaffs system. img
2.
I think the strings may be different in length and cannot be fully displayed. The boss said that it would be difficult to make them into a rolling effect, but the omnipotent Baidu told me that it is not difficult, as shown below:Textview plus three
I don't have to talk much about it.Code:
Floatingviewapp. Java:
Package com.cn. lhq; Import android. app. listactivity; Import android. OS. bundle; Import android. widget. arrayadapter; public class floatingviewapp extends listactivity { @
In layout. after the absolute size of imageview is defined in the XML file, the subsequent size display cannot be dynamically modified. In fact, this problem is taken into account when the Android platform designs the UI control, to adapt to
AndroidCompiling System Architecture:
By analyzing the android compilation system, you will find that the android compilation system does not only compile, link, and package the binary files of the target (host) system, Java applications, etc, it
First, set the view to overwrite the dialog at the top.
Then, add style for translucent in values/styles. xml:
Continue adding style for fade-in and fade-out effects:
In the anim folder, add the fading_in.xml for fade-
After debugging for several days, you can finally display your map program as follows:
Map Display requires the mapview class, which should be placed in mapactivity. The controller can control the scaling size of the map (from mapview ).
Of course,
The project is the position where the last file is played. I use sharedpreferences to save the project. The key-value pairs are the file path and the current playback position.
definition: sharedpreferences preferences = NULL; sharedpreferences.
Galleyview Galley is a gallery. It is generally used only for Image Display and is not commonly used.
1) Android XML file
Java code:
android:id="@+id/gallery"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
How does Android obtain data in edittext in the dialog box?From: http://blog.sina.com.cn/s/blog_86193b540100tulr.html
// Get the custom dialog boxFinal view dialogview = A. Inflate (R. layout. loand, null ); // Create dialog boxAlertdialog DLG = new
1. project directory
A. In the res directory-create a drawble folder and put the custom image
2. Main. xml
Android: Orientation = "vertical" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" Android: layout_width =
1. Java Layer
The Java-layer print log is implemented by the Android. util. Log class, which is defined in the following file:Frameworks/base/CORE/Java/Android/util/log. Java (APP framework layer)
The corresponding JNI layer code is in the file:
337 people read comments (0) collect reports
If you're getting started with the android SDK and encounter an error message which says "error: target ID is not valid. use 'android list targets' to get the target kids' "Here's how to solve
When textiew is set in the gridview or listview, if onlick () is not set for textiew, The onitemclick () of gridiew can be executed, however, if we do not set onclick () when changing textview to a button, the onitemclick () of the gridview cannot
There are two projects, TASKA and taskb. TASKA is responsible for calling the interface specified in taskb.
Task kb has three interfaces: A, B, and C. Each interface displays the task id.
Singletask:
The page B is declared as singletask.
Run taskb
From: http://apps.hi.baidu.com/share/detail/30108924
1.Android shares the same layout file in XMLI always thought that sharing the same layout file was copied after the previously written layout, Or I used layoutinflater add in Java code. But
For example, one thing I want to do is to connect a main interface (main activity) to many different sub-function modules (child activity ), after the sub-module is finished, it will return to the main interface. It may also return some data
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