Display network images with one line of code using the afinal open source framework in android

Source: Internet
Author: User

Features of the android rapid development framework afinal:

Easy to use, no configuration required, but configurable
It is normal to slide quickly when uploading images in listview, gridview, and other containers.

Support concurrent thread pool count Configuration
Supports memory cache size Configuration
Supports disk size cache configuration and cache location Configuration
Allows you to compress the disk cache with non-compressed configurations, and compress the image for a specific imageview. Non-compress supports decode for multiple imageviews of one image.
Supports Image Display configuration during loading.
Allows you to configure images displayed when loading fails.
Supports the download server configuration to facilitate image reading of different protocols (built-in http download server, which can be extended to other protocols such as ftp)
Supports the display configuration and displays playing animations to achieve better results.

[Java]
Public class DemoActivity extends FinalActivity {

@ ViewInject (id = R. id. imageView) ImageView imageView; // No need for findViewById

@ Override
Public void onCreate (Bundle savedInstanceState ){
Super. onCreate (savedInstanceState );
SetContentView (R. layout. main );

// Use the FinalBitmap component to display the network image to the imageView.
New FinalBitmap (this). init (). display (imageView, "http://www.bkjia.com/uploadfile/2012/1030/20121030030818104.png ");
}
}

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.