FileDocCategorySizeDatePackage
ShortButtons.javaAPI DocAndroid 5.1 API1682Thu Mar 12 22:22:12 GMT 2015android.widget.scroll

ShortButtons

public class ShortButtons extends android.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);