问题
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