mc73 Well-Known Member Licensed User Longtime User Dec 26, 2018 #1 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 Code: Copy 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?
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 Code: Copy 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 Dec 26, 2018 #2 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
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.
Erel B4X founder Staff member Licensed User Longtime User Dec 26, 2018 #3 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. Upvote 0
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.
mc73 Well-Known Member Licensed User Longtime User Dec 26, 2018 #4 Erel said: 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. Click to expand... 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
Erel said: 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. Click to expand... 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!
Erel B4X founder Staff member Licensed User Longtime User Dec 26, 2018 #5 mc73 said: I guess the elevation can solve this problem. Click to expand... Both buttons and the toolbar are elevated. Upvote 0
mc73 said: I guess the elevation can solve this problem. Click to expand... Both buttons and the toolbar are elevated.