Android Question Disable AppCompat Bar

mc73

Well-Known Member
Licensed User
Longtime User
Sometimes user has to enter a pin, I use a panel for this, and eveyrthing is fine, BUT user can still perform actions from appCompat bar, for e.g. clicking menu items and so on. I tried
B4X:
acToolbar.enabled=false
, but actions could still be performed.
I know I can create custom items and deal with their events, but it would be much straight forward if I could simply disable the whole bar.
Any ideas?
 

mc73

Well-Known Member
Licensed User
Longtime User
As a workaround, I added a customLayoutDialog and initiated its dialog.close when auth is finished. Works ok, I'm still curious though on how to disable the toolbar.
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
You can put a transparent panel above all views including the toolbar. Just make sure to set its elevation to 5dip+ and handle its click event.
I forgot to mention that earlier I've tried that (WITHOUT elevation) and unfortunately there was a button showing up even if my panel was bring to front. I guess the elevation can solve this problem. Thank you Erel!
 
Upvote 0
Top