android studio not showing title bar in preview

谁说胖子不能爱 提交于 2019-12-11 03:15:06

问题


The preview of my app in android studio does not show title bars, however when I run the app on my phone the title is there. Why is this and how can I get the software preview to display this?


回答1:


Try this on your Preview pane.




回答2:


This is an issue with the API 22 (5.1) SDK:

https://code.google.com/p/android/issues/detail?id=159793 https://code.google.com/p/android/issues/detail?id=159780

As a temporary workaround you can either uninstall the API 22 SDK and revert to 21, or just tell Android Studio to render against API 21 (5.0) instead (button at the top right of the preview panel).



来源:https://stackoverflow.com/questions/29013003/android-studio-not-showing-title-bar-in-preview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!