[Android beginners] 4. RadioButton & CheckBox, androidradiobuttonStart Android
Today I learned about the functions and usage of Single-choice buttons and multiple-choice buttons.
The main purpose is to be more familiar with the control operation
ViewPager (on) -- Automatic ad carousel and viewpager --
In this example, ViewPager is used to implement automatic ad carousel and the function of displaying and clicking on small dots is a more practical function.
In this example, the playback,
During linux compilation, multiple source files generate one target file.
Obj-m: = target. o
Target-objs: = src1.o src2.o src3.o
How to compile a source file and a header file simultaneously in linux shell to generate an executable file
Android Property Animation, androidpropertyProperty Animation introduction:
Born in 3.0, a series of operations are performed using the attributes of the View. For example, the setAbc attribute of a View can be set theoretically.
It not only changes
Similar to Android Pooling technology
/*** Follow the Android pooled Technology * @ author fgtian **/public class ObjectCacheTest {public static class ObjectItem {private static int sPoolSize = 0; private static final int MAX_CACHE = 10; private
Learn relative layout of android from scratch. android gets layout.The relative layout manager refers to the placement of a widget by referring to other Widgets. You can control the placement of components in the upper, lower, left, and right
ViewPager (bottom) -- use Fragment to achieve beautiful page switching, viewpagerfragment
The previously used ViewPager is suitable for simple ad switching, but it is best to use the officially recommended Fragment for page switching.
I strive to be
Android learning route (18) Supports different devices-Supports different screens and android routes
Android uses two common attributes: size and density to classify the device screens. You need to first predict what screen devices your application
A Preliminary Study on the template mode of Android Development
I think the template mode is the longest used in Android development and can be seen everywhere. Understanding this mode helps us to have a deeper understanding of the Android source
Analysis on Android Handle Mechanism
I. Handle use cases:
1. Create a handle instance
new handle();
2. Message)
sendMessage(msg);
3. process messages
HandleMessage (Message msg ){};
Ii. Principle Analysis
Based on the handle call trilogy above,
SoundPool usage for Android Development
Play Sound Effects using SoundPool
MediaPlayer is not suitable for applications that often play intensive, fast, and short-lived audio effects (such as game sound effects. MediaPlayer has the following
[Android] Fragment source code analysis (SI) Fragment stack Management
The Fragment stack is a brilliant part of Fragment management. Its essential difference with the Activity stack lies in:
1. Fragment management is in the process space
2.
About MotionEvent in touch event in Android
The touchEvent event contains a MotionEvent parameter. The following describes the meaning and usage of its attributes.
Generally, the operations are as follows:
Switch (event. getAction () {// The first
Binary heap, heap
Untested:
Public class BinaryHeap {public static final int INIT_CAPACITY = 10; private int [] mArray; private int mLength; public BinaryHeap () {mArray = new int [INIT_CAPACITY + 1]; mLength = 0;} private void expandArray (int
The project has finally been completed.
After three months of work, I finally finished a project and developed it independently. No one gave me any guidance, but Baidu (google is being harmonious). I learned a lot, not only in terms of technology,
Stack structure change of Android 4.4 and android4.4
We know that the form of activity in AMS is ActivityRecord, the form of task in AMS is TaskRecord, and the management form of process in AMS is ProcessRecord.
Let's take a look at versions earlier
Android drawer navigation, android drawer
Today I learned a simple android drawer navigation method.
Select when creating a project:
In this way, android IDE will give you a drawer navigation framework.
We only need to modify the following in the
Android and android Official Website
Principle
In fact, the android system will send broadcasts when the earphones are inserted and pulled out. Therefore, to detect the status of the earphones, you only need to register the BroadCastReceiver to
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.