Android Question AHActionItem

dagodom

Member
Licensed User
Longtime User
Hi, i try to use ICSMenuExample but i don't understand how can fire event on click item of AHActionItem

I use

B4X:
Sub bh_Click(item As Int)

but i receive error "signature does not match expected signature"

B4X:
q.Initialize("bh")
Dim a As AHActionItem
a.Initialize(1,"Hello",shareIcon)
q.addActionItem(a)

where i see some documentation on this event?
Thank's
Regards
 

NJDude

Expert
Licensed User
Longtime User
The event is actually:
B4X:
Sub bh_ItemClicked(ItemID As Int)

To get the events, when you are creating the subroutine do this:

1- Type the word SUB and tap the SPACE BAR
2- Press the TAB key
3- A list will popup and you will see "AHActionBar"
4- Select it and you will see all the available events.

The steps above applies to all views not only this one.
 
Upvote 0

dagodom

Member
Licensed User
Longtime User
Thank's for the Tips.
May be i mistake something other, i put a message box in sub

B4X:
Sub bh_ItemClicked(ItemID As Int)
Msgbox("fire","")
End Sub

but msgbox not appear.

I try again with original example.

Thank's again.
 
Upvote 0
Top