FileDocCategorySizeDatePackage
ListItemFocusableAboveUnfocusable.javaAPI DocAndroid 5.1 API1593Thu Mar 12 22:22:12 GMT 2015android.widget.listview

ListItemFocusableAboveUnfocusable

public class ListItemFocusableAboveUnfocusable extends android.util.ListScenario
A list where the items may befocusable, but the second item isn't actually focusabe.

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

        if (position == 0) {
            return ListItemFactory.button(
                    position, parent.getContext(), getValueAtPosition(position), desiredHeight);
        } else {
            return super.createView(position, parent, desiredHeight);
        }
    
protected voidinit(Params params)

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