K Kamac Active Member Licensed User Longtime User Sep 20, 2011 #2 Yes. Actually just set your button's like that: Drawable: StatelistDrawable And in Enabled Drawable set BitmapDrawable. Then set some image for it and you're done Upvote 0
Yes. Actually just set your button's like that: Drawable: StatelistDrawable And in Enabled Drawable set BitmapDrawable. Then set some image for it and you're done
Shay Well-Known Member Licensed User Longtime User Sep 20, 2011 #3 Thanks !!! (hard to find) Upvote 0
thedesolatesoul Expert Licensed User Longtime User Sep 20, 2011 #4 I used a canvas object to draw on a button. That works fine too. Upvote 0
I iliberis Member Licensed User Longtime User Sep 24, 2011 #5 I'm using an ImageView and a label as a button. Upvote 0
P philgoodgood Member Licensed User Longtime User Sep 26, 2011 #6 hi, i made like that Code: Dim btChercheAPK As Button Dim fondandroid As Bitmap btChercheAPK.Initialize("btChercheAPK") activity.AddView(btChercheAPK,85%x,45dip,35dip,35dip) fondandroid.Initialize(File.DirAssets, "android_.png") btChercheAPK.SetBackgroundImage(fondandroid) Last edited: Sep 26, 2011 Upvote 0
hi, i made like that Code: Dim btChercheAPK As Button Dim fondandroid As Bitmap btChercheAPK.Initialize("btChercheAPK") activity.AddView(btChercheAPK,85%x,45dip,35dip,35dip) fondandroid.Initialize(File.DirAssets, "android_.png") btChercheAPK.SetBackgroundImage(fondandroid)
B basicall Member Licensed User Longtime User Jan 8, 2013 #7 thedesolatesoul said: I used a canvas object to draw on a button. That works fine too. Click to expand... Sir, I use canvas to draw on a button, the button could not show pressed state then. Can you show little code sample here ? Last edited: Jan 8, 2013 Upvote 0
thedesolatesoul said: I used a canvas object to draw on a button. That works fine too. Click to expand... Sir, I use canvas to draw on a button, the button could not show pressed state then. Can you show little code sample here ?
Erel B4X founder Staff member Licensed User Longtime User Jan 8, 2013 #8 Search for StateListDrawable. It is also explained in the Beginner's guide. Upvote 0
klaus Expert Licensed User Longtime User Jan 8, 2013 #9 It's explained in the User's Guide in chapter 9.1.4 StateListDrawable not in the Beginner's Guide. Best regards. Upvote 0
It's explained in the User's Guide in chapter 9.1.4 StateListDrawable not in the Beginner's Guide. Best regards.
Erel B4X founder Staff member Licensed User Longtime User Jan 8, 2013 #10 Thank you Klaus for the correction... Upvote 0