FileDocCategorySizeDatePackage
ListItemFocusablesClose.javaAPI DocAndroid 5.1 API1705Thu Mar 12 22:22:12 GMT 2015android.widget.listview

ListItemFocusablesClose

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