Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.42 KB

uinspector-optional-fresco.md

File metadata and controls

34 lines (24 loc) · 1.42 KB

Uinspector-Optional-Fresco

Introduce

Uinspector-Optional-Fresco is an intergration library for Uinspector and Fresco. Fresco is a library for displaying images in Android applications. Uinspector-Optional-Fresco helps us to inspect the properties of SimpleDraweeView!

Get Started

  1. Add dependencies to your build.gradle file

    dependencies {
        //the framework of Uinspector
        debugImplementation 'com.huya.mobile:Uinspector:x.y.z'
        //the optional library to inspect properties of Fresco
        debugImplementation 'com.huya.mobile:Uinspector-optional-fresco:x.y.z'
    }

    x.y.z replace with Jitpack

  2. Run your app and turn on the Uinspector. Click the SimpleDraweeView

    Inspect Fresco

    Now you can see the properties listed in the popupPanel:

    • fresco src : The image source set in SimpleDraweeView
    • fresco src type : The type of fresco src
    • fresco decode : The bitmap decode config used for this image
    • fresco prefer width/height : What size the image is going to download
    • fresco rotation : How the image should be rotated by Fresco