user3343264
user3343264

Reputation: 71

android studio not showing title bar in preview

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

Answers (3)

Vaibhav
Vaibhav

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.

Source: https://teamtreehouse.com/community/for-some-reason-my-title-bar-isnt-appearingm-using-android-studio

Upvotes: 0

Tunga
Tunga

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

nuuneoi
nuuneoi

Reputation: 1798

Try this on your Preview pane.

enter image description here

Upvotes: 1

Related Questions