Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Yauheni Pakala edited this pageJan 2, 2020 ·1 revision

Example add a custom target for the custom view.

Views

SubsamplingScaleImageView

SubsamplingScaleImageView - A custom image view for Android, designed for photo galleries and displaying huge images.

usingFFImageLoading.Drawables;usingFFImageLoading.Targets;usingFFImageLoading.Work;namespaceFFDroidTargetDemo{usingCom.Davemorrissey.Labs.Subscaleview;publicclassSubsamplingScaleImageViewTarget:ViewTarget<SubsamplingScaleImageView>{publicSubsamplingScaleImageViewTarget(SubsamplingScaleImageViewimageView):base(imageView){}publicoverridevoidSet(IImageLoaderTasktask,SelfDisposingBitmapDrawableimage,boolanimated){varsource=ImageSource.ForBitmap(image.Bitmap);Control.SetImage(source);}}}

Using

vartarget=newSubsamplingScaleImageViewTarget(_imageView);ImageService.Instance.LoadUrl("image-url").IntoAsync(target);

nice

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp