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

ListItemFocusableAboveUnfocusable

public class ListItemFocusableAboveUnfocusable extends com.android.frameworktest.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);