Android Volley with Image Caching
Currently I'm working with an application where one activity holds a list view with image and text for each row. I'm downloading the images using the volley. When the list view item is clicked the app will switch to a another activity with a detail view where a large version of the clicked image will show. For the both time I'm using NetworkImageView. Images are loaded in the list view with caching. But the problem appeared on the detailed view. The images are showing from the previously loaded cache with low resolution. I want to load a good resolution image on detailed view which will cache the image separately for large view. For the both screen image url are same. How to do that ? Thanks in advance.
First thing is a bit obvious - make sure you images are at the wanted quality. If that's the case, you'll probably want to load the image "manually" using the ImageLoader class, as the NetworkImageView by default, optimizes the size of the Bitmap it creates to be the size of the view itself. So what happens is, you first load the thumbnail view which is small, and the saved Bitmap is created in that size instead of the original image size. Then, when the bigger view requests the same image, the cached version is returned which is a small Bitmap, and the view scales it up, creating the low-res appearance. Try using ImageLoader.get() with the width and height appropriate to the bigger view in the detail screen. The other alternative is to load 2 versions of the same image.
When does the Debugger get disconnected?
Android: MainActivity is suddenly created again in different Activity without being called?
Audio file uploaded from android not working in ios
How to recreate all fragments in ViewPager:
Ecommerce Android is not shown in analytics
How to swipe and switch between two images?
Android Mapview show white tiles without any map
How can i save audio from speech recognition API?
Navigation tabs with fragments to which to add another fragment
Get the category of any app programetically in Android?
PhoneGap for Android - Connect to Database
Passing data from a Service
Building cocos2d-x android project failed: Unknown EABI object attribute 44
Add a layout in a view
Android Programming ViewPager from a GridView
Monitoring wifi state change since boot time in Android