Skip to main content
Logo Appt Light

Scale text on Android

Apps should scale text to the size specified by users in the system settings. This is especially important for visually impaired users because they might not be able to read the text otherwise.

On Android, you can use Scale-independent Pixels to scale text. This unit ensures that the user's preferences are taken into account when determining the font size. We recommend to define the textSize in your styles to make sure it's the same everywhere.

<style name="Widget.TextView">
    <item name="android:textSize">18sp</item>
</style>

Feedback?

Let us know!