A
A
Artem Mishurovsky2017-02-16 21:51:10
Android
Artem Mishurovsky, 2017-02-16 21:51:10

Toolbar and ActionBar material design?

Can you please tell me why my ActionBar is not displayed?
I want to make it colorPrimaryDark.
And the Toolbar is very small in size, I don't want to expand it with dp, because when I expand it, the inscription and the Drawer remain at the top ...
Now like this.
82QZ0eqhj4KzLA.png
I want it to be like this
p27WKRoHoZ9d52.png
activity_main.xml
4ea4ec93d0.png?s=002b3bb425e5d1e158a5f371212.png?s=002b3bb425e5d1e158a5f3dc00000
styles.xml
12321321.png?s=002b3bb425e5d1e158a5f3f90
MainActyvity.java
00449b7523.png?s=002b3bb425e5d1e158a5f40

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2017-02-17
@Innerbloom

I don’t see screenshots of the code, who generally publishes the code with screenshots, but on the screenshot of the screen itself I see the standard Toolbar, in it the title and ActionBarDrawerToggle should be vertically centered, if you get some markup defect on top, compare with the "original" , such as the one created in Android Studio when a Navigation View Activity is created.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question