An even better solution with the newes B4A versions is to put the resource files in a separate folder and use the #AdditionalRes attribute to reference them.
wow, this is such a great library, i'm loving b4android more and more, this is very awesome, i just added this library to the app i'm working on, i was using the addmenu function, but now that i added this library i can display a pop up menu when the menu key on my phone is pressed, i love it, thanks Erel!
In this case the Sender is not a View object and can't be used as an anchor for the Popup. You can add a invisible View (Panel, Label etc.) to your layout at the position where you want to open the popup and use this as an anchor.
Hello, I have found this library quite interesting.
I wonder if anybody knows some trick to close a AHPopupMenu via software.
I mean, after a menu has been shown with the Show(AnchorView) method, I would need a way to programmatically close it using some code inside a timer routine.
Hello, I have found this library quite interesting.
I wonder if anybody knows some trick to close a AHPopupMenu via software.
I mean, after a menu has been shown with the Show(AnchorView) method, I would need a way to programmatically close it using some code inside a timer routine.
What I meant was I need a way to close the menu via software (in other word without tapping the finger on the screen )
I can only open the menu with Show() but something like Hide() does't exist.
Maybe the reflection library could help here but I would need some hint about it...
What I meant was I need a way to close the menu via software (in other word without tapping the finger on the screen )
I can only open the menu with Show() but something like Hide() does't exist.
Maybe the reflection library could help here but I would need some hint about it...
I swapped out this library for StdActionBarHelper's PopupMenu some time ago, and I'm happy with the switch.
The latter has a Close method which looks like it will do what you want. Worth a try unless you have specific needs that StdActionBarHelper doesn't meet.