I am editing the style xml trying to get the Activity title bold.
<style name="MyTheme" parent="@android:style/Theme.Holo.Light">
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
<style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">#81CFEB</item>
<item name="android:textStyle">bold</item>
</style>
But only what I can set is the background color desired. I do not why the textStyle is not set to bold.
Anyone know how to solve it?
For those using AppCompat, you'll need something like this:
Can you please try with this:
if (Build.VERSION.SDK_INT >= 24) {getSupportActionBar().setTitle(Html.fromHtml("" + title + "", 0));} else {getSupportActionBar().setTitle(Html.fromHtml("" + title + ""));}