Skip to main content
Logo Appt Light

Reflow on Android

Content on the screen should reflow based on the users' preferences. In landscape mode, the vertical space is much smaller compared to portrait mode. And when users have enlarged their font size, text should not get truncated. Instead, apps should adapt the interface to the available space.

On Android, all elements should be placed in a scrollable layout, such as a ScrollView or RecyclerView. Never use fixed values for any heights or widths.

<ScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Content should scroll!" />
</ScrollView>

Feedback?

Let us know!