tchigher / AutoResizeTextView

Text view that auto adjusts text size to fit within the view

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AutoResizeTextView

Maven Central

Text view that auto adjusts text size to fit within the view. This library is heavily based on Chase's answer to this Stack Overflow question. It works with custom fonts.

##Usage

dependencies {
    compile 'com.github.jivimberg:autoresizetextview:0.0.2'
}

Use the AutoResizeTextView in your XML:

<com.github.jivimberg.library.AutoResizeTextView
        android:text="@string/super_long_text"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:textSize="86sp"/>

##License DO WHAT YOU WANT TO PUBLIC LICENSE Version 2, December 2004

 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> 

 Everyone is permitted to copy and distribute verbatim or modified 
 copies of this license document, and changing it is allowed as long 
 as the name is changed. 

          DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 
 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 

0. You just DO WHAT THE FUCK YOU WANT TO.

About

Text view that auto adjusts text size to fit within the view


Languages

Language:Java 100.0%