S Stichler Active Member Licensed User Aug 25, 2018 #1 I have a button i'd like to change it's image via code. Could someone post example code please?
R ronell Well-Known Member Licensed User Longtime User Aug 25, 2018 #2 Code: Copy Dim bmp As BitmapDrawable bmp.Initialize(LoadBitmap(File.DirAssets, "image.png")) button.Background = bmp Upvote 0
Code: Copy Dim bmp As BitmapDrawable bmp.Initialize(LoadBitmap(File.DirAssets, "image.png")) button.Background = bmp
Star-Dust Expert Licensed User Longtime User Aug 25, 2018 #3 Code: Copy Button1.SetBackgroundImage(bmp.Initialize(LoadBitmap(File.DirAssets, "image.png")) Upvote 0