The ActionBar is visible when running the app on the device, however it is not in the preview section.
In the preview: https://i.stack.imgur.com/dNjAz.png
On the device: https://i.stack.imgur.com/IjIHn.png
This is the styles.xml
<!-- Base application theme. -->
<style name="Theme.AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
How can I make the ActionBar appear on the preview also? Thank you.