Fresco experience a variety of problem solving

Source: Internet
Author: User

Fresco experience a variety of problem solving
    • xmlns:fresco="http://schemas.android.com/apk/res-auto"显示为灰色,没有应用到

      1. Solutions

      Change the way you refer to the picture ( src ) to: fresco:placeholderImage

    • Initialize location error

Error inflating class com.facebook.drawee.view.SimpleDraweeView android.view.InflateException: Binary XML file line #14: Error inflating class com.facebook.drawee.view.SimpleDraweeViewCaused by: java.lang.reflect.InvocationTargetExceptionCaused by: java.lang.NullPointerException            at com.facebook.drawee.view.DraweeView.setImageDrawable(DraweeView.java:140)

Here is no reference to`com.facebook.drawee.view.SimpleDraweeView

1.解决办法

Adjust the initialization fresco to the setContentView(R.layout.activity_main); top of the


    • Picture does not appear

      1. Workaround

Fresco is not supported wrap_content so we change the corresponding place to the value: Kind 100dp of, more specific circumstances set

Fresco experience a variety of problem solving

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.