the problem text in textview
looks fine on android emulator, doesn't on actual device. not device , i'm not familiar android system, don't know if it's somehow overridden system settings.
here how looks on emulator:
and here how looks on device:
textview:
<textview android:id="@+id/text_header" android:layout_width="match_parent" android:layout_height="wrap_content" android:textappearance="@style/apptheme.text.stepperheader" android:text="header"/>
style:
<style name="apptheme" parent="theme.appcompat.light.darkactionbar"> <!-- no text-related settings here. --> </style> <style name="apptheme.text"> <item name="android:textcolor">#1f1f1f</item> </style> <style name="apptheme.text.stepperheader"> <item name="android:textsize">14sp</item> </style>
if problem in appcompat
theme parent — 1 should use instead? want consistent app on devices. can explain why it's happening , how fix it?
to able same font result on (almost) every device, use custom font. can download 1 websites dafont, etc. then, can apply custom font (and without need details of android styles) ui widgets using calligraphy library. see piece-of-cake documentation examples usage.
Comments
Post a Comment