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 B4X: Dim bmp As BitmapDrawable bmp.Initialize(LoadBitmap(File.DirAssets, "image.png")) button.Background = bmp Upvote 0
B4X: 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 B4X: Button1.SetBackgroundImage(bmp.Initialize(LoadBitmap(File.DirAssets, "image.png")) Upvote 0