Menu

When larger text puts a button out of reach on Android
📰

When larger text puts a button out of reach on Android

DEV Community: android·Samya·15 days ago
#ORihuswO
#devtoandroid#devto#dev#action#modifier
Reading 0:00
15s threshold

Someone opens a library app to collect a book. They make the text on their phone larger, read the collection details and try to confirm. The label is cut off. On a compact screen, the confirmation button has disappeared below the visible area—and an upward swipe doesn't bring it back.

This is an illustrative example, built to make a layout problem visible. The app screens in our video are real captures from a small Jetpack Compose sample; the surrounding scenes are illustrated. The sample deliberately constrains the layout. It is not a customer app or a claim that larger text breaks every app.

The short video shows the problem and the corrected flow:

The text grew. The layout didn't make room.

In the broken version, we used a custom action with a fixed height and clipped its contents. At a larger font size, the text needed more vertical space than the action allowed.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.