Android Performance Optimization-Listview optimization, android-listview
ListViewWorking principle
First of all to understand the working principle of ListView (see http://mobile.51cto.com/abased-410889.htm ),
ListView requires the adapter to
Android event distribution mechanism from the source code
In the setView method of ViewRootImpl, the user's touch button message is reflected in the form, while windowManagerService is to manage these windows. Once it receives the user's touch
Complete apt-get source for Android and application development software in Ubuntu14.04 ., Ubuntu14.04android
# Deb cdrom: [Ubuntu 14.04.1 LTS _ Trusty Tahr _-Release amd64( 20140722.2)]/trusty main restricted
# See
Setup iOS Development Environment., iosenvironmentSetup iOS Development EnvironmentInstall XCode and check-out source code from SVNXCode
Please find document from Apple on how to install XCode.Check-out Source Code
In XCode, Use menu "Source Control"
Use of UIActivityIndictorView, uiactivityMain functions:
It is mainly used in applications to prompt users to execute certain actions in the background, such as network requests and database operations.
Common
NSOperation and nsoperation for iOS multi-thread programming
There are two NSOperation methods:
1>. NSInvocationOperation: creates an operation and points it to the executed code segment with selecter.
2>. NSBlockOperation: Create an operation and
SetUserVisibleHint () method call in Fragment, setuservisiblehintWhen using Fragment, you will inevitably want to do some operations in the visible and invisible views. At this time, you will usually think of methods similar to onResume () and
UI_UIImageView basic operations, ui_uiimageviewUI_UIImageView common methods
// Use ImageView to locate the image UIImage * image = [UIImage imageNamed: @ "bg_2"] by name; // Add the image to imageView. UIImageView * imageView = [[UIImageView alloc]
EGOCache cache framework
EGOCacheIs a lightweight cache framework. It is easy to use. In my current project, I used EGOCache to cache the downloaded photos and strings.
Someone may ask, do you still need to use EGOCache to cache photos? Are
UIImagePickerController localized control text, custom uiimagepicker
When using UIImagePickerController, you will find that when selecting a photo or taking a photo, many controls on the interface are in English, such as "Cancel" and "Choose. So
Quick implementation of iOS Singleton, iOS implementation
Singleton mode is a common design mode in iOS. The purpose of the singleton design mode is to make an object of this Class A unique instance in the system. Therefore, a unique method is
Android: questions about the re-creation of surfaceView ., Androidsurfaceview
Recently, I was working on an Android Video Player project and encountered a problem: After the screen lock, surfaceview will be destroyed and various errors will occur.
When is layoutSubviews called?
LayoutSubviews will be called in the following cases:
1. Initialization of init will not trigger layoutSubviews2. addSubview triggers layoutSubviews3. Setting the view Frame triggers layoutSubviews. Of course, the
CocoaAsyncSocket data encoding and decoding for network communication (2), cocoaasyncsocket
Data encoding and decoding for CocoaAsyncSocket Network Communication (2)
In the tcp connection used by CocoaAsyncSocket for network communication (1), we
Web Service and XML data parsing in iOS Development Network
Master haomeng is devoted to his contribution and respects the author's Labor achievements. Do not repost them.
If the article is helpful to you, you are welcome to donate to the author,
Singleton in Android Design ModeI. Overview
The Singleton mode is the simplest one in the design mode, but it does not have the abstract relationship between various objects in the design mode. Therefore, some people do not think it is a mode, it
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