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
First Android project, first android Project
I learned Android for a month and got into touch with the first Android project in my life. For a Tom, the summary is an important learning method. I will summarize what I have learned as follows:
1. 1
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
DatePicker Date and Time Control, datepicker date ControlDatePicker Date and Time Control
I. Introduction
Ii. Method
The most routine usage
DatePicker
TimePicker
The month starts from 0.
Iii. code example
:
Code:
Fry. Activity01
1 package fry;
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
SeekBar Drag Control, seekbar dragSeekBar Drag Control
I. Introduction
1,
Ii. How to Use the SeekBar drag bar Control
1. Create a SeekBar Control
2. Add the setOnSeekBarChangeListener
Use of AutoCompleteTextView, autocompletetextviewUse of AutoCompleteTextView
I. Introduction
1. Functions of AutoCompleteTextView
2. Class Structure of AutoCompleteTextView
That is, it has various functions of EditText.
3. Working Principle of
Common Button events and button eventsCommon Button events
I. Introduction
1. button Introduction
This topic describes the click events, touch events, and focus events of Buttonn.
The interfaces are OnClickListener, OnTouchListener, and
Difference between Margin and Padding, marginpaddingDifference between Margin and Padding
I. Introduction
Ii. Instances
Code
/MarginAndPadding/res/layout/activity01.xml
1 2 6 7 15 16 23 24 33 34 35
Android studio's simplest package name modification method: androidstudio package name
Select the Project, right-click the Project, and deselect Compact Empty Moiddle Packages.
Enter new name Click Preview enter new name
Request Code and result codeRequest Code and result code 1. Introduction
Request Code:
For example, if the request page has multiple buttons, you can find the button in the request according to the request code.
Result code:
Multiple requests can
SingleInstance and singleinstance modes in activity Startup ModeSingleInstance in activity Startup Mode
I. Introduction
Log. d ("C2", getTaskId () + ""); getTaskId () can be used to obtain the ID of the activity stack.
Ii. code example
Result
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
Serialization, serialization, and deserializationSerialization
I. Differences between serializable and parcelable
Serializable is the serialization in java, and parcelable is the serialization in android.
Serializable serialized files are stored
Implicit intent, intentImplicit intent
1. Introduction to implicit intent
Explicit intent we mentioned earlier, such:
Intent intent = new Intent ();
Intent. setClass (this, Other. class); // this sentence indicates an explicit intent, because it
Fragment has been added ., Fragmentadded causes
Java. lang. IllegalStateException: Fragment already added: ****** Effect
The reason is that the commit of the commit method is asynchronous, so it is easy to see that there is no added status in
When to use hamburger menu design, use hamburger Menu Design
Hamburger menu, also called sidebar menu. It is represented by three stacked lines (you can imagine two breads and meat in the middle of a hamburger) icons. When you click the icon,
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