FileDocCategorySizeDatePackage
TextLayoutTest.javaAPI DocAndroid 5.1 API1551Thu Mar 12 22:22:12 GMT 2015android.text

TextLayoutTest

public class TextLayoutTest extends TestCase

Fields Summary
protected String
mString
protected android.text.TextPaint
mPaint
Constructors Summary
Methods Summary
protected voidsetUp()

        super.setUp();
        mString = "The quick brown fox";
        mPaint = new TextPaint();
    
public voidtestDynamicLayoutTest()

        Layout l = new DynamicLayout(mString, mPaint, 200,
                Layout.Alignment.ALIGN_NORMAL, 1, 0,
                true);
    
public voidtestStaticLayout()

        Layout l = new StaticLayout(mString, mPaint, 200,
                Layout.Alignment.ALIGN_NORMAL, 1, 0,
                true);