Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

catchthecows/BigTextButton

Open more actions menu

Repository files navigation

This project contains source to demonstrate how you can get text in an Android view to resize to fill the view.

The example shows how to use getTextBounds() from the android Paint class to determine the size of the text will be when drawn.  With this information you can calculate a textSize and textScaleX to use to get your text the size you want.

About

Android sample code showing how to size text to fit a view

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.