I have created a custom theme to define the size of the title bar and its background style. This is the code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="customTheme" parent="android:Theme">
<item name="android:windowTitleSize">53px</item>
<item name="android:windowTitleBackgroundStyle">@style/WindowTitleBackground</item>
<item name="android:windowContentOverlay">@android:color/transparent</item>
</style>
</resources>
The problem is that I am setting a fixed size for this title bar instead of using different values depending on whether the device is using hdpi/mdpi or ldpi icons.
What should be done here? I tried adding the theme and styles to the drawable directory but obviously this is wrong.
Thanks!