3
I’m learning to use the toolbar
on Android development and saw that the use of it is very similar to other views
, I saw that you can put it without being at the top, that you can put items inside it (button for example), like a layout, then hit the doubt, I can use a LinearLayout
(or other) as a toolbar
?
Put it on top, set colors, put items, etc... What are the benefits of using Toolbar even?
But in a Layout (like Linear by example, which is what I use most) it is not possible to do all this? If so, why use a Toolbar? by already being created properly for this and being simpler?
– underfilho
Yes it is possible. At the bottom is what was done by those who made the Toolbar, started from a Viewgroup. What is the reason for you to do what is already done?
– ramaral
Oh I understood then, thank you very much there, it was a simple doubt, but now it’s all ok, now I go back to the codes!
– underfilho