D drj Member Licensed User Longtime User May 2, 2013 #1 Hi, I found that if I make a button like this that it shrinks in height when I click on in the emulator or when I do an entry on the display with the virtual keyboard. I am setting this button on the create first time. Dim cols2(2) As Int Dim gd2 As GradientDrawable cols2(0) = Colors.White cols2(1) = Colors.LightGray gd2.Initialize("TOP_BOTTOM",cols2) gd2.CornerRadius = 5 Button23.Background=gd2
Hi, I found that if I make a button like this that it shrinks in height when I click on in the emulator or when I do an entry on the display with the virtual keyboard. I am setting this button on the create first time. Dim cols2(2) As Int Dim gd2 As GradientDrawable cols2(0) = Colors.White cols2(1) = Colors.LightGray gd2.Initialize("TOP_BOTTOM",cols2) gd2.CornerRadius = 5 Button23.Background=gd2
Erel B4X founder Staff member Licensed User Longtime User May 2, 2013 #2 Please do not post duplicate questions. Upvote 0
D drj Member Licensed User Longtime User May 2, 2013 #3 sorry about that - I thought this is somewhat different Hi, I thought this was a little different , sorry about that - it is the same bug manifesting itself differently. Looks like if you are going to assign gradients to buttons each button should have its own gradient - if not , unpredictable things will happen. I am not sure this is a bug in my code (ie - not supposed to do what I did) or a bug in the compiler? Thanks Upvote 0
sorry about that - I thought this is somewhat different Hi, I thought this was a little different , sorry about that - it is the same bug manifesting itself differently. Looks like if you are going to assign gradients to buttons each button should have its own gradient - if not , unpredictable things will happen. I am not sure this is a bug in my code (ie - not supposed to do what I did) or a bug in the compiler? Thanks
Erel B4X founder Staff member Licensed User Longtime User May 3, 2013 #4 This is how drawables work. Upvote 0