Text size and different android screen sizes

suggest change

Sometimes, it’s better to have only three options

style="@android:style/TextAppearance.Small"
style="@android:style/TextAppearance.Medium"
style="@android:style/TextAppearance.Large"

Use small and large to differentiate from normal screen size.

<TextView
        android:id="@+id/TextViewTopBarTitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        style="@android:style/TextAppearance.Small"/>

For normal, you don’t have to specify anything.

<TextView
        android:id="@+id/TextViewTopBarTitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>

Using this, you can avoid testing and specifying dimensions for different screen sizes.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents