Yvon Steinthal Active Member Licensed User Longtime User Feb 2, 2016 #1 Hello, I just wanted to know if there was such a thing as a state list drawable in iOS. My B4A Code is as follows: <code> Dim sd As StateListDrawable sd.Initialize sd.AddState(sd.State_Pressed, pressedDrawable) sd.AddCatchAllState(Pnl.Background) </code> Any equivalent for B4i? Thanks! Y
Hello, I just wanted to know if there was such a thing as a state list drawable in iOS. My B4A Code is as follows: <code> Dim sd As StateListDrawable sd.Initialize sd.AddState(sd.State_Pressed, pressedDrawable) sd.AddCatchAllState(Pnl.Background) </code> Any equivalent for B4i? Thanks! Y
Erel B4X founder Staff member Licensed User Longtime User Feb 3, 2016 #2 See this tutorial: https://www.b4x.com/android/forum/threads/programmatic-changing-of-button-images.50651/ Upvote 0
See this tutorial: https://www.b4x.com/android/forum/threads/programmatic-changing-of-button-images.50651/