Android Question Button is Press

hdmiacc

Member
Licensed User
Longtime User
how to initially create button is already Press during loading the application for 1st time?
B4X:
Sub Activity_Create(FirstTime As Boolean)

end sub

i want the btn.Tag is initial press for 1st time appliaction start.
B4X:
Sub pB1_Click
    Dim btn As Button = Sender
    bBand1 = btn.Tag
End Sub

if spinner we can used this code
B4X:
Sub Activity_Create(FirstTime As Boolean)
spinner1_ItemClick("value","position")
end sub
 
Last edited:

eurojam

Well-Known Member
Licensed User
Longtime User
you have to use a StateListDrawable and set it as background for the button, see User's Guide for more information on that
 
Upvote 0
Top