The AutoCompleteTextView component in Android is simple to use,
The Android app prompts you how to use the AutoCompleteTextView text component. This component is used to input text, and the data in the configured adapter is searched and displayed
Mobile phone home location query,Mobile phone home location query
:
Analysis:
1. Pass multiple parameters and use a class.
2. Open the database
Private SQLiteDatabase database;
Database = SQLiteDatabase. openOrCreateDatabase (file, null );
File
Gridview table control,Gridview Table Control
:
Analysis:
Similar to ListvVew, it is used to bind data to the control through the adapter.
The procedure is as follows:
1. Create a GridView control and specify the number of Columns
Android:
Will UI optimization make users angry? You should do this, And the ui gets angry.
The following content consistsMockplusTeam translation arrangement, for learning and communication only,Mockplus is a faster and simpler prototype design
Android uses include in layout xml to perform static loading. androidlayoutAndroid uses include in layout xml to perform static loading.
Include static loading:Not only can layout be loaded, but also controls can be loaded (control label names must
Use 1 for the Spinner, and useUse
I. Usage
1. Create a Spinner control in layout.
Android: id = "@ + id/spinner1"Android: layout_width = "match_parent"Android: layout_height = "wrap_content"/>
2. Add data sources and display formats to the data
ScrollView vertical scroll control and scrollview Vertical ControlScrollView vertical scroll Control
I. Introduction
Ii. Method
1) how to use the ScrollView vertical scroll Control
1. Create a ScrollView control on the outermost layer of the
HorizontalScrollView horizontal scroll control,HorizontalScrollView horizontal scroll Control
I. Introduction
Usage: ScrollView
Ii. Method
1) how to use the HorizontalScrollView horizontal scroll Control
1. Create a HorizontalScrollView control
ImageView display image control and imageview image controlImageView display image control
I. Introduction
1,
2,
ImageViewThe image View directly inherits from the View class. Its main function is to display images. In fact, it can be used not
CheckBox check box control, checkbox check boxCheckBox check box Control
I. Introduction
1,
2. Class Structure Diagram
Ii. How to Use the CheckBox check box Control
Java code is used to add controls in LinearLayout.
1. New LinearLayout Layout
2
EditText implements input restrictions and verification, while edittext implements verification.EditText implements input restrictions and Verification
I. Methods
1) input restrictions
1. android: digits restricts that only lowercase abc can be
Standard and activitystandard of activity Startup ModeStandard of activity Startup Mode
I. Introduction
This mode is the default, and we do not need to set it ourselves.
Just like a stack.
If we quit, we quit one by one, which is actually what
SingleTask and activitysingletask in activity Startup ModeSingleTask in activity Startup Mode
I. Introduction
If another application calls C2 and C2 at the bottom of the stack, if C1, C3, and C2 are used in the program, then C2 calls onNewIntant,
Activity Status is saved and restored. activity Status is saved.Activity Status saving and recovery
I. Introduction
1. Save the activity status
* Save the activity status. The onSaveInstanceState method automatically saves the status of the
Quick positioning in Eclipse and Eclipse PositioningQuick positioning in Eclipse
Select a project, ctrl + h
I. Objectives
Find the activity on which the following page belongs.
Step 2
1. Search for keywords
The words "Click me" on the
Intent Filter, intentfilterIntent Filter 1. Introduction
If an Intent request executes an action on a piece of data, how does Android know which application (and component) can respond to this request?Intent Filter is used to register Activity,
Android-delete the App with the specified package name, android-package name app
/*** Check and delete the old package app if it exists. */private void checkOldPackage () {String packageName = "xxx. xxx. xxx. xxx "; if (isAvilible (this,
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