Question

I don't why but my application doesn't show the TextView in italic on the Samsung Galaxy Tab 2 (while it is working correctly on a Nexus 7 tablet for instance).

My code :

<style name="MyTheme.GeneralRedDate">
    <item name="android:textColor">@color/red</item>
    <item name="android:textSize">15sp</item>
    <item name="android:textStyle">bold|italic</item>
</style>

Of course I already tried to put italic instead of bold|italic and it doesn't work neither.

EDIT It seems that this thread is the same : Samsung devices supporting setTypeface(Typeface.Italic)?

Was it helpful?

Solution

This is a bug from Samsung and the best solution is, as FomayGuy said, to add the italic version of the system font to the assets.

The official Roboto Android font is available here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top