Ga naar hoofdinhoud
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.

Op Android kun je gebruik maken van Scale-independent Pixels om tekst herschaling te ondersteunen. Deze eenheid houdt rekening met de voorkeuren van de gebruiker bij het bepalen van de tekstgrootte. We raden je aan om de textSize in de styles vast te leggen zodat het overal hetzelfde is.

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

Feedback?

Laat 't ons weten!