JMB Active Member Licensed User Longtime User Oct 16, 2019 #1 Hi there. I am experimenting with some of the AppCompat code which creates Tool bars - specifically corwin42's code. His code nicely places the ToolBar underneath the status bar. My code doesn't. I've checked the designer and I have copied the script across to make sure the panel resizes. Is there a particular trick to making sure a Tool bar positions itself correctly under the status bar? And is there a way to position a tool bar at the bottom of a view rather than at the top? I tried putting it down at the bottom in the Designer, but all the content disappeared. Confused. JMB
Hi there. I am experimenting with some of the AppCompat code which creates Tool bars - specifically corwin42's code. His code nicely places the ToolBar underneath the status bar. My code doesn't. I've checked the designer and I have copied the script across to make sure the panel resizes. Is there a particular trick to making sure a Tool bar positions itself correctly under the status bar? And is there a way to position a tool bar at the bottom of a view rather than at the top? I tried putting it down at the bottom in the Designer, but all the content disappeared. Confused. JMB
Erel B4X founder Staff member Licensed User Longtime User Oct 17, 2019 #2 Check this example: AppCompat with ToolBar - minimal example The tool bar is positioned correctly. JMB said: And is there a way to position a tool bar at the bottom of a view rather than at the top? Click to expand... This is probably not possible if the tool bar is set as the main action bar. Upvote 0
Check this example: AppCompat with ToolBar - minimal example The tool bar is positioned correctly. JMB said: And is there a way to position a tool bar at the bottom of a view rather than at the top? Click to expand... This is probably not possible if the tool bar is set as the main action bar.
JMB Active Member Licensed User Longtime User Oct 17, 2019 #3 Hi Erel, Thanks for that. I shall check it out. JMB Last edited: Oct 17, 2019 Upvote 0
JMB Active Member Licensed User Longtime User Oct 17, 2019 #4 Still not working. I forgot to mention that my code embeds the View with the Tool Bar inside a sliding drawer. I wonder if that mkes a difference I will post some demo code. JB Upvote 0
Still not working. I forgot to mention that my code embeds the View with the Tool Bar inside a sliding drawer. I wonder if that mkes a difference I will post some demo code. JB
Erel B4X founder Staff member Licensed User Longtime User Oct 17, 2019 #5 JMB said: Still not working. Click to expand... The example doesn't work properly when you run it as-is? Upvote 0
JMB said: Still not working. Click to expand... The example doesn't work properly when you run it as-is?
JMB Active Member Licensed User Longtime User Oct 17, 2019 #6 Here is the code.. if anyone can suggest why the Tool bar doesn't sit under the status bar I would be grateful. JMB Attachments MenuDemo.zip MenuDemo.zip 23.2 KB · Views: 297 Upvote 0
Here is the code.. if anyone can suggest why the Tool bar doesn't sit under the status bar I would be grateful. JMB
JMB Active Member Licensed User Longtime User Oct 17, 2019 #7 Erel said: The example doesn't work properly when you run it as-is? Click to expand... The example works with no problems. Mine doesn't, but I wonder if it is because it is embedded in a sliding drawer... Upvote 0
Erel said: The example doesn't work properly when you run it as-is? Click to expand... The example works with no problems. Mine doesn't, but I wonder if it is because it is embedded in a sliding drawer...
Erel B4X founder Staff member Licensed User Longtime User Oct 18, 2019 #8 The tool bar shouldn't be inside any other container. Upvote 0