FileDocCategorySizeDatePackage
ListButtonsDiagonalAcrossItems.javaAPI DocAndroid 1.5 API1938Wed May 06 22:42:02 BST 2009com.android.frameworktest.listview

ListButtonsDiagonalAcrossItems

public class ListButtonsDiagonalAcrossItems extends com.android.frameworktest.util.ListScenario

Fields Summary
Constructors Summary
Methods Summary
protected android.view.ViewcreateView(int position, android.view.ViewGroup parent, int desiredHeight)

        final Slot slot = position == 0 ? Slot.Left :
                (position == 1 ? Slot.Middle : Slot.Right);
        return ListItemFactory.horizontalButtonSlots(
                parent.getContext(), desiredHeight, slot);
    
public android.widget.ButtongetCenterButton()

        return (Button) ((ViewGroup) getListView().getChildAt(1)).getChildAt(1);
    
public android.widget.ButtongetLeftButton()

        return (Button) ((ViewGroup) getListView().getChildAt(0)).getChildAt(0);
    
public android.widget.ButtongetRightButton()

        return (Button) ((ViewGroup) getListView().getChildAt(2)).getChildAt(2);
    
protected voidinit(Params params)

        params.setItemsFocusable(true)
                .setNumItems(3)
                .setItemScreenSizeFactor(0.2)
                .setMustFillScreen(false);