ViewPager is an API available for Android 3.0 and later versions.
1. What can ViewPager do?
1. ViewPager can be easily used to slide the section in Section 5.0.
2. Implement a navigation guide interface similar to Sina Weibo.
3. Implement other
I wrote the principle of this implementation two days ago. I didn't write the specific code implementation, and I don't know much about it. Now I write the specific code.
The Code has been posted, and the comments have been very detailed. If you
I believe you are familiar with android decompilation tools.
Such as APK-TOOL, dex2jar
APK-TOOL used to decompile layout files
Dex2jar is used to decompile dex into A. jar package.
The generated jar package can be viewed using jd-gui (
Android often has some operations such as network requests, file read/write, and database operations, which are time-consuming. We need to put them in a non-UI thread for processing. At this time, we need to handle the changes and interactions of
Android has three types of Windows
Application Window: contains the windows created by all applications and the Windows displayed by the system before the Application starts.
Subwindow: for example, a custom application dialog box or input Window,
BackgroundAfter the Linux-3.8, Android kernel branch, will remove f_adb, change the use of USB function FS, in the user space to achieve the USB adb function. This article according to the original author of Google + Article, in Atmel sama5
Similarities and differences between OSGI and android Service
The OSGI Service and android Service are similar in terms of Service and Client.
Android Service interface -- service. AIDL
OSGI interface -- java interface
Therefore, the android inter-
Camera focusing: in principle, the vertical seekbar is used to obtain the distance based on the user's drag, and then set it to Camera in the form of Parameter.
OnSeekBarChangeListener
/*
* (Non-Javadoc)
*
* @ See
* Android. widget.
In the previous "Android custom components series [6] -- advanced practice (3)", we added the process knowledge about event distribution in Android, in this article, we will analyze the implementation of the drop-down PinnedHeaderExpandableListView.
In the previous article "Android custom components series [5] -- advanced practice (2)", I continued to analyze the instructor's "Implementation of the drop-down PinnedHeaderExpandableListView, this plan inserts a "knowledge point" to parse the
When we are working on android projects, it will certainly involve parsing xml files. Next we will introduce the parsing of xml files, including DOM, SAX, Pull, and previously used DOM4J and JDOM:
XML file to be parsed: person. xml
Sometimes fragment needs to be nested in an activity, but nested calling often leads to display of views is different from expected or there is a problem with fragment switching. Pay attention to the following points during use:1. fragment is nested
Today, the boss arranged a task for me to get the app Power Consumption ranking (from the night before to the next day), so I did not expect this kind of information to be much more on the Internet, A major class is found:PowerProfile, but yes, this
In some unexpected situations, we don't want to see program crashes. In this case, we can write logs in a file using uncaptured exceptions to record error information to prevent impact on user experience.
package com.home.testuncatch;import
Long ago... as it has become history, I still want to tell the truth: when android was not recognized by the masses in the early years, developers were not saturated as they are now. I was also a senior in college. The predecessors warned me that I
In the message mechanism of Android, java Message loops are not only provided for Application development. In fact, the java mechanism is ultimately implemented by native. Native not only provides a set of message transmission and processing
1. The implementation of TabHost is described in the previous article, but TabHost is implemented using Fragment. Here I try to use another method to inherit TabActivity to implement TabHost. MainActivity. java replication code public class
Preface
When developing Android applications, you often need to deal with list display, such as Listview. If you cannot properly process the details during use, the performance will be greatly reduced.
The Listview display content is bound to the
In the past two months, the basic requirements of the project have been basically customized and evaluated, and are implemented around quanzhi A31 and Android4.2.2. Recently, due to the need to modify his Camera architecture, the application needs
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