shrinking drawable buttons

drj

Member
Licensed User
Longtime User
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
 

drj

Member
Licensed User
Longtime User
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
Top