Android Question StdActionbar Button

avacondios

Active Member
Licensed User
Longtime User
Is it possible for StdActionbar buttons, to add a Tag property on these ? I am creating on running mode and I want to have a key for the Click event. Until now, I am using the following code to get the title of them, but I prefer to have a Tag, rather using the Title property..

B4X:
Sub StdAB_Click
Dim btn as Object = Sender

if btn = "title 1" then
   .....
else
 .....
end if
end sub
 

avacondios

Active Member
Licensed User
Longtime User
I mean the menu buttons on STDActionbar. I have added with the following code : StdActionBar.AddMenu("title" ,"StdAB")
 
Upvote 0
Top