Toobar items not vertically centered #542
-
Hello, How can we successfully center vertically the toolbar buttons (case of system symbols) ? So that they are vertically aligned with the titles view too? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
You can take a look at how I add them in the demo app. System images in toolbars and navigation bars are quite finicky. |
Beta Was this translation helpful? Give feedback.
-
That's what I did. In your example the buttons are not centered vertically. Look carefully. |
Beta Was this translation helpful? Give feedback.
-
In fact it is the imageView and the titlesView which are centered in relation to the contentView and not in relation to the toolbar. And the contentView is bigger than the toolbar. |
Beta Was this translation helpful? Give feedback.
The toolbar height must be left to the system layout. If you notice, I don’t touch the height of the toolbar. I just center it.