Fresco loading Picture method
Layout file introduced xmlns:fresco= "Http://schemas.android.com/apk/res-auto"
<Com.facebook.drawee.view.SimpleDraweeViewAndroid:id= "@id/img_icon"Android:layout_width= "42.0dip"Android:layout_height= "42.0dip"Android:layout_marginleft= "12.0dip"Android:layout_margintop= "20.0dip"fresco:roundascircle= "true"Fresco:failureimage= "@drawable/my_face"Fresco:failureimagescaletype= "Centerinside"/>
Load Picture method
M.simpledraweeview.setimageuri (Uri.parse (IMAGEURL));
Load network pictures Everything is OK (network picture Test No more than 1M is displayed after the seven Qiniu storage is cropped)
Prompt bitmap too large to be uploaded into a texture when acquiring a local phone album
Fresco default is not to print log open as follows
New Hashset<>(); Requestlisteners.add (new Requestlogginglistener ()); = Imagepipelineconfig.newbuilder (appContext) // other setters . Setrequestlisteners (requestlisteners) . Build (); Fresco.initialize (appContext, config); Flog.setminimumlogginglevel (flog.verbose);
Search Bitmap too large to being uploaded into a texture keyword online said in application add android:hardwareaccelerated= "false" off hardware acceleration, personal feeling since as the most There must be a solution to the fire's fresco, so I found it on the website.
Http://www.fresco-cn.org/docs/requesting-multiple-images.html
There is such a property . Setlocalthumbnailpreviewsenabled(true)
This feature only supports local URIs and is JPEG picture format
If the local JPEG map has a thumbnail image of Exif, image pipeline can immediately return it as a thumbnail image. The Drawee
thumbnail is displayed first, and the full, clear, large image is displayed after the decode is finished.
My understanding is that fresco to get the album's thumbnail is tested or not still displayed.
I changed the keyword search in front of the log. Fresco becomes fresco Bitmap too large to being uploaded into a texture
The first record in the results is http://stackoverflow.com/questions/33676807/fresco-bitmap-too-large-to-be-uploaded-into-a-texture.
Imagerequest request =Imagerequestbuilder.newbuilderwithsource (Uri.parse (IMAGEURL)). setprogressiverenderingenabled (true). setautorotateenabled (true). setlocalthumbnailpreviewsenabled (true). Setresizeoptions (Newresizeoptions (View.getlayoutparams (). Width, view.getlayoutparams (). Height). build (); Draweecontroller Controller=Fresco.newdraweecontrollerbuilder (). Setimagerequest (Request). Setoldcontroller (view.ge Tcontroller ()). Setautoplayanimations (true). build (); View.setcontroller (Controller);
Run test show normal done ^0^
Fresco Bitmap too large to BES uploaded into a texture