FileDocCategorySizeDatePackage
ShortButtons.javaAPI DocAndroid 1.5 API1711Wed May 06 22:42:02 BST 2009com.android.frameworktest.scroll

ShortButtons

public class ShortButtons extends com.android.frameworktest.util.ScrollViewScenario
A series of short buttons, some of which are embedded within another layout.

Fields Summary
private final int
mNumButtons
protected final float
mButtonHeightFactor
Constructors Summary
Methods Summary
public android.widget.ButtongetButtonAt(int index)

        if (index < 3) {
            return getContentChildAt(index);
        } else {
            LinearLayout ll = getContentChildAt(3);
            return (Button) ll.getChildAt(index - 3);
        }
    
public intgetNumButtons()


       
        return mNumButtons;
    
protected voidinit(Params params)

        final int numButtonsInSubLayout = getNumButtons() - 3;
        params.addButtons(3, "top-level", mButtonHeightFactor)
                .addVerticalLLOfButtons("embedded",
                        numButtonsInSubLayout,
                        numButtonsInSubLayout * mButtonHeightFactor);