-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1ba3ba
commit 254f57d
Showing
28 changed files
with
182 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
using FFImageLoading; | ||
using FFImageLoading.Views; | ||
using FFImageLoading.Work; | ||
|
||
namespace DdfGuide.Android | ||
{ | ||
public class ImageViewFiller : IImageViewFiller | ||
{ | ||
public void FillImageViewFromUrl(ImageViewAsync imageView, string url) | ||
{ | ||
if (string.IsNullOrWhiteSpace(url)) | ||
{ | ||
ImageService.Instance | ||
.LoadCompiledResource("ic_launcher") | ||
.IntoAsync(imageView); | ||
} | ||
else | ||
{ | ||
ImageService.Instance | ||
.LoadUrl(url) | ||
.LoadingPlaceholder("ic_launcher", ImageSource.CompiledResource) | ||
.ErrorPlaceholder("ic_launcher", ImageSource.CompiledResource) | ||
.IntoAsync(imageView); | ||
} | ||
} | ||
} | ||
using Android.Widget; | ||
using FFImageLoading; | ||
using FFImageLoading.Work; | ||
|
||
namespace DdfGuide.Android | ||
{ | ||
public class ImageViewFiller : IImageViewFiller | ||
{ | ||
[System.Obsolete] | ||
public void FillImageViewFromUrl(ImageView imageView, string url) | ||
{ | ||
if (string.IsNullOrWhiteSpace(url)) | ||
{ | ||
ImageService.Instance | ||
.LoadCompiledResource("ic_launcher") | ||
.IntoAsync(imageView); | ||
} | ||
else | ||
{ | ||
ImageService.Instance | ||
.LoadUrl(url) | ||
.LoadingPlaceholder("ic_launcher", ImageSource.CompiledResource) | ||
.ErrorPlaceholder("ic_launcher", ImageSource.CompiledResource) | ||
.IntoAsync(imageView); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.