Thursday, 10 March 2016

Xamarin Android get image from Assets


            var ims = AppContext.Assets.Open("path/to/my/file/in/assets");
            var drawable = Drawable.CreateFromStream(ims, null);
            imageView.SetImageDrawable(drawable);


No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!