FileDocCategorySizeDatePackage
ExpandableListSimple.javaAPI DocAndroid 1.5 API1634Wed May 06 22:42:02 BST 2009com.android.frameworktest.expandablelistview

ExpandableListSimple

public class ExpandableListSimple extends com.android.frameworktest.util.ExpandableListScenario

Fields Summary
private static final int[]
NUM_CHILDREN
Constructors Summary
Methods Summary
protected voidinit(ExpandableParams params)


    
        
        params.setNumChildren(NUM_CHILDREN)
                .setItemScreenSizeFactor(0.14);
    
public booleanonCreateOptionsMenu(android.view.Menu menu)


        menu.add("Add item").setOnMenuItemClickListener(new OnMenuItemClickListener() {
            public boolean onMenuItemClick(MenuItem item) {
                mGroups.add(0, new MyGroup(2));
                ((BaseExpandableListAdapter) mAdapter).notifyDataSetChanged();
                return true;
            }
        });
        
        return true;