Android Question Making Tool Bar appear below status bar

JMB

Active Member
Licensed User
Longtime User
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
 

JMB

Active Member
Licensed User
Longtime User
Hi Erel,

Thanks for that. I shall check it out.

JMB
 
Last edited:
Upvote 0

JMB

Active Member
Licensed User
Longtime User
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

JMB

Active Member
Licensed User
Longtime User
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
    23.2 KB · Views: 117
Upvote 0
Top