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

ListInterleaveFocusables

public class ListInterleaveFocusables extends com.android.frameworktest.util.ListScenario
List that interleaves focusable items.

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

        if (mFocusablePositions.contains(position)) {
            return ListItemFactory.button(
                    position, parent.getContext(), getValueAtPosition(position), desiredHeight);
        } else {
            return super.createView(position, parent, desiredHeight);
        }
    
public intgetItemViewType(int position)

        return mFocusablePositions.contains(position) ? 0 : 1;
    
public intgetViewTypeCount()

        return 2;
    
protected voidinit(Params params)


    
        
        params.setNumItems(7)
                .setItemScreenSizeFactor(1.0 / 8)
                .setItemsFocusable(true)
                .setMustFillScreen(false);