[Solution] Android Studio does not displays Toolbar in Layout Design


For an App template that you select when you create an Android App in Android Studio, it has a Toolbar, but when you open the layout.xml file in Design mode you would have noticed that it does not display the Toolbar.

In order to enable the Toolbar, open your layout fine and go-to design and click on the eye icon and from the dropdown select - "Show System UI"

Show Toolbar in Android Layout Design
Show Toolbar in Android Layout Design

Note: This option may be different if you are using older versions of Android Studio

Tested on: 
Android Studio 4.1.3
Build #AI-201.8743.12.41.7199119, built on March 11, 2021
Runtime version: 1.8.0_242-release-1644-b3-6915495 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.16
GC: ParNew, ConcurrentMarkSweep


Have Questions? Post them here!



Recent Posts:




Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.