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
!
-
Add dependencies to your
build.gradle
filedependencies { //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' }
-
Run your app and turn on the Uinspector. Click the
SimpleDraweeView
Now you can see the properties listed in the popupPanel:
fresco src
: The image source set in SimpleDraweeViewfresco src type
: The type of fresco srcfresco decode
: The bitmap decode config used for this imagefresco prefer width/height
: What size the image is going to downloadfresco rotation
: How the image should be rotated by Fresco