Preface
This chapter is the developer Guide/Developing/Appendix/App Install Location, version: Android3.0 r1, translated from "madgoat", welcome to its blog: "http://madgoat.cn ", thanks again for "madgoat "! We look forward to your participation in
Differences between rawable-hdpi, drawable-mdpi, and drawable-ldpi:
In Versions later than Android2.1, there are three directories: drawable-mdpi, drawable-ldpi, and drawable-hdpi. These three directories are mainly used to support multi-resolution.
The ListActivity in Android involves two types of click events.1 is short clickOne is long-click
For short press clicksYou only need to reload the following function to void onListItemClick (ListView arg0, View arg1, int pos, long id)For a long
After installing the Java environment in RHEL6.1, garbled characters are displayed when running the Java program. solution:
1. First find the JDK installation path, which is installed in/usr/java/jdk1.6.0 _ 26.
2. Create a font directory#
Structure
Inheritance relationship
Public class HandleThread extends Thread
Java. lang. Object
Java. lang. Thread
Android. OS. HandlerThread
Class Overview
It is used to easily create a Thread class containing logoff. Logoff is used to create the
Android: allowTaskReparenting = ["true" | "false"]Whether to allow the activity to change the subordinate task, such as switching from a short message task to a browser task.
Android: alwaysRetainTaskState = ["true" | "false"]Whether to keep the
Both listview and button need to change the background of the original android control, and some information on the Internet is not very comprehensive, so let's summarize the usage of android selector.First, the android selector is configured in
ListView is a commonly used control, but it has always been thought that the process of creating a ListView is a bit cumbersome, so here we will summarize it for your convenience.
The program effect is to implement a ListView. The ListView contains
Drag the icon on the panel and change the Properties as follows:
Android: id = "@ + id/imgSwit01"
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"/>
ImageSwitcher uses the setFactory () method: Call setFactory which
In this example, LabelLayout is used to construct a simple input form:
Android: layout_width = "match_parent"Android: layout_height = "match_parent"Android: stretchColumns = "1">
Android: text = "@ string/table_layout_10_user"Android: textStyle =
WindowManager. LayoutParams is a nested class of the WindowManager interface. It inherits from ViewGroup. LayoutParams and is used to describe Window management policies to WindowManager.Major member ConstantsWindow flag SeriesThis series is mainly
A service in Android is similar to a service in windows. A service generally does not have a user interface. It runs in a system and is not easily noticed by users. You can use it to develop programs such as monitoring.
We can understand the Service
In addition to displaying the application icon and Activity title on the left side of the ActionBar, you can also display additional items on the ActionBar. These added projects are called "action items ". These projects are shortcuts for some
In addition to the most commonly used TextView, Android also provides some other basic controls.
ButtonImageButtonEditTextCheckBoxRadioGroup and RadioButtonToggleButtonThe following example shows how to use these basic controls.
1. Create a project:
ListView is a view that can be expanded in depth. During project creation, it is essential to extend the ListView to display data. Next, we will show you how to select multiple objects in ListView and how to use the "filter" function of ListView.
1.
In this example, both android: stretchColumns and non-TableRow are used as sub-views of TableLayout. In this case, the non-TableRow sub-View is extended to the whole row, which is the separator we need to display.
Android: layout_width =
LayoutAnimationController can control the display of a group of controls according to regulations. There are two methods to achieve this.
1. The following is implemented using an XML file. First, create an anim folder under res to create a file
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.