FileDocCategorySizeDatePackage
MultiPageTextWithPadding.javaAPI DocAndroid 5.1 API1254Thu Mar 12 22:22:12 GMT 2015android.widget.scroll.arrowscroll

MultiPageTextWithPadding

public class MultiPageTextWithPadding extends android.util.ScrollViewScenario
One TextView with a text covering several pages. Padding is added above and below the ScrollView.

Fields Summary
Constructors Summary
Methods Summary
protected voidinit(Params params)


        String text = "This is a long text.";
        String longText = "First text.";
        for (int i = 0; i < 300; i++) {
            longText = longText + " " + text;
        }
        longText = longText + " Last text.";
        params.addTextView(longText, -1.0f).addPaddingToScrollView(50, 50);