Displayimageoptions configuration of the problem set a considerexifparams=true can be
Attach the meanings of each configuration item
Displayimageoptions options =NewDisplayimageoptions.builder ()//set the picture that the picture displays during the download. showimageonloading (r.drawable.ic_stub)//sets the picture to be displayed when the image URI is empty or wrong. Showimageforemptyuri (r.drawable.ic_stub)//set picture to display when errors are displayed during image load/decode. Showimageonfail (r.drawable.ic_error)//sets whether the downloaded picture is slow to exist in memory. Cacheinmemory (false) //sets whether the downloaded picture is slow to exist on the SD card. Cacheondisc (true) //Keep picture file header information. Considerexifparams (true) //set how images are displayed in an encoded manner. Imagescaletype (imagescaletype.exactly_stretched)//set the decoding type of a picture. Bitmapconfig (Bitmap.Config.RGB_565)//. Decodingoptions (android.graphics.BitmapFactory.Options//decodingoptions)//set the decoding configuration for a picture. Considerexifparams (true) //set the delay before the picture is downloaded. delaybeforeloading (100)//int//Delayinmillis Set the delay time for you//Set up bitmap before adding a picture to the cache//. Preprocessor (bitmapprocessor preprocessor). resetviewbeforeloading (true)//set whether the picture is reset before downloading, reset//. Displayer (New Roundedbitmapdisplayer )//is set to fillet, how many radians. Displayer (NewFadeinbitmapdisplayer (100))//Fade in. build ();
Using Imageloader to take photos to ImageView inside the picture is not in the wrong direction