File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
sample/src/com/nostra13/example/universalimageloader Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ public void onCreate(Bundle savedInstanceState) {
50
50
.showStubImage (R .drawable .ic_stub )
51
51
.showImageForEmptyUri (R .drawable .ic_empty )
52
52
.showImageOnFail (R .drawable .ic_error )
53
- .cacheInMemory ()
54
- .cacheOnDisc ()
53
+ .cacheInMemory (true )
54
+ .cacheOnDisc (true )
55
55
.bitmapConfig (Bitmap .Config .RGB_565 )
56
56
.build ();
57
57
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ public void onCreate(Bundle savedInstanceState) {
50
50
.showStubImage (R .drawable .ic_stub )
51
51
.showImageForEmptyUri (R .drawable .ic_empty )
52
52
.showImageOnFail (R .drawable .ic_error )
53
- .cacheInMemory ()
54
- .cacheOnDisc ()
53
+ .cacheInMemory (true )
54
+ .cacheOnDisc (true )
55
55
.bitmapConfig (Bitmap .Config .RGB_565 )
56
56
.build ();
57
57
Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ public void onCreate(Bundle savedInstanceState) {
59
59
.showStubImage (R .drawable .ic_stub )
60
60
.showImageForEmptyUri (R .drawable .ic_empty )
61
61
.showImageOnFail (R .drawable .ic_error )
62
- .cacheInMemory ()
63
- .cacheOnDisc ()
62
+ .cacheInMemory (true )
63
+ .cacheOnDisc (true )
64
64
.displayer (new RoundedBitmapDisplayer (20 ))
65
65
.build ();
66
66
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ public void onCreate(Bundle savedInstanceState) {
60
60
options = new DisplayImageOptions .Builder ()
61
61
.showImageForEmptyUri (R .drawable .ic_empty )
62
62
.showImageOnFail (R .drawable .ic_error )
63
- .resetViewBeforeLoading ()
64
- .cacheOnDisc ()
63
+ .resetViewBeforeLoading (true )
64
+ .cacheOnDisc (true )
65
65
.imageScaleType (ImageScaleType .EXACTLY )
66
66
.bitmapConfig (Bitmap .Config .RGB_565 )
67
67
.displayer (new FadeInBitmapDisplayer (300 ))
You can’t perform that action at this time.
0 commit comments