Reputation: 71
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?
Upvotes: 2
Views: 4067
Reputation: 919
Well I know the question is quite old but if you are still facing problems then you can go to the Apptheme next to rotation on your xml file and select;
Material Light > Material.Light.DarkActionBar
It worked for me,I was facing the same problem.
Upvotes: 0
Reputation: 1014
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).
Upvotes: 0