How do I use the Androidx toolbar?

Phương Linh

New member
How do I use the Androidx toolbar?
Answer
Search the Toolbar View from the Palette menu present at the top left portion of the Design window. Drag and place it as a child of ConstraintLayout. To make its appearance similar to ActionBar, add the AppBarLayout in the activity_main. xml file in such a manner that the Toolbar becomes its child.
 

Tìm kiếm

Back
Top