Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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.