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

ListItemFocusablesFarApart

public class ListItemFocusablesFarApart extends com.android.frameworktest.util.ListScenario
A list where each item is tall with buttons that are farther apart than the screen size. We don't want to jump over content off screen to the next button, we need to pan across the intermediate part.

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

        return ListItemFactory.twoButtonsSeparatedByFiller(
                position, parent.getContext(), desiredHeight);
    
protected voidinit(Params params)

        params.setItemsFocusable(true)
                .setNumItems(2)
                .setItemScreenSizeFactor(2);