Introduction to the Android MVP high-speed development framework (Dileber use image download tool)

Source: Internet
Author: User

Busy working these days ~
Today took the time to deal with the framework of the bug a bit ~ ~ and the source code of volley changed a bit

Android MVP framework: Dileber (Https://github.com/dileber/dileber.git)

QQ Group of official communication: 171443726
I personally qq:297165331~~ have what problem also can consult ~ ~

Continue to explain Dileber's pictures under the tools
I changed the source code of Volley's Networkimageview ~ ~ to make the network request and picture requests in the framework go one interface

How do I use the tools to download pictures in Dileber?
For example the following ~ ~ ~

The first way is to embed this view in the layout file in Java code with findview~~~

    <com.android.volley.toolbox.NetworkImageView            android:id="@+id/networkImageView"            android:layout_width="100dp"            android:layout_height="100dp" />

The other is direct new out ~ ~

It's like saying crap.

And then you can write that in the code.
And there is a merit, is to assume that the view is not displayed in the case is not download the picture ~ ~ and there is a cache ~ ~ Saying this is volley credit ~~23333333

It doesn't seem to be clear: I'll make one more sentence.
The previous parameter is the network image address, followed by the default display picture of the picture is not requested
networkImageView.setImageUrl("url",R.drawable.ic_launcher);

Android MVP high-speed Development framework introduction (Dileber Use of image download tool)

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.