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

ListItemFocusablesClose

public class ListItemFocusablesClose extends com.android.frameworktest.util.ListScenario
Each list item has two focusables that are close enough together that it shouldn't require panning to move focus.

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);
    
public android.view.ViewgetChildOfItem(int listIndex, int index)
Get the child of a list item.

param
listIndex The index of the currently visible items
param
index The index of the child.

        return ((ViewGroup) getListView().getChildAt(listIndex)).getChildAt(index);

    
protected voidinit(Params params)

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