While working on an Android Application, when I ran my App on Emulator, I saw that there were two ToolBars displayed instead of one! I could figure out the reason and here is what the issue was
By default when you create an Android Application using a template - it adds a Toolbar as default, If you change your application layout and add your own Toolbar - it will display two of them, I was able to remove the default one by doing the below steps,
![Android Two Toolbar issue Android Two Toolbar issue](https://code2care.org/q/android-app-show-two-toolbars-issue-fix/images/Android Two Toolbar issue.png)
Android Two Toolbar issue
- Go to res -> values -> themes
- Open themes.xml file,
- Add the below two lines under style tag,
<item name="windowActionBar">false</item> <item name="windowNoTitle">true</item>
- Now run the App you should see only one Toolbar
Note: Do the same changes for the dark them styles.xml file as well.
Have Questions? Post them here!
More Posts related to Android,
- Increase Android Emulator Timeout time
- Android : Remove ListView Separator/divider programmatically or using xml property
- Error : Invalid key hash.The key hash does not match any stored key hashes
- How to Change Android Toast Position?
- Android Alert Dialog with Checkboxes example
- Android : No Launcher activity found! Error
- Android Development: Spinners with Example
- Failed to sync Gradle project Error:failed to find target android-23
- INSTALL_FAILED_INSUFFICIENT_STORAGE Android Error
- Disable Fading Edges Scroll Effect Android Views
- How to create Toast messages in Android?
- Channel 50 SMSes received every few minutes Android Phones
- Android xml error Attribute is missing the Android namespace prefix [Solution]
- Create Custom Android AlertDialog
- How To Disable Landscape Mode in Android Application
- Android Development - How to switch between two Activities
- incorrect line ending: found carriage return (\r) without corresponding newline (\n)
- Generate Facebook Android SDK keyhash using java code
- Android Error Generating Final Archive - Debug Certificate Expired
- 21 Useful Android Emulator Short-cut Keyboard Keys
- Android RatingBar Example
- 11 Weeks of Android Online Sessions-15-Jun-to-28-Aug-2020
- Download interrupted: Unknown Host dl-ssl.google.com Error Android SDK Manager
- fill_parent vs match_parent vs wrap_content
- Android : Connection with adb was interrupted 0 attempts have been made to reconnect
More Posts:
- Write JSON to file in pretty-printed Format using Java Jackson - Java
- Auto Execute a command or script on Mac Terminal Startup - MacOS
- Exception in thread main java.lang.NoClassDefFoundError: package javaClass - Java
- Android read text file from internal storage - Android
- How to convert a Postman request to cURL Command - cURL
- Convert text to random case using Notepad++ - NotepadPlusPlus
- Change SharePoint search results FullTextSqlQuery RowLimit 10000 - SharePoint
- Fix - cd: no such file or directory: .zshrc - zsh