FileDocCategorySizeDatePackage
TextLayoutTest.javaAPI DocAndroid 1.5 API1561Wed May 06 22:42:02 BST 2009com.android.unit_tests

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);