FileDocCategorySizeDatePackage
NavItemSelectedListener.javaAPI DocAndroid 5.1 API1493Thu Mar 12 22:22:10 GMT 2015com.android.internal.app

NavItemSelectedListener

public class NavItemSelectedListener extends Object implements AdapterView.OnItemSelectedListener
Wrapper to adapt the ActionBar.OnNavigationListener in an AdapterView.OnItemSelectedListener for use in Spinner widgets. Used by action bar implementations.

Fields Summary
private final ActionBar.OnNavigationListener
mListener
Constructors Summary
public NavItemSelectedListener(ActionBar.OnNavigationListener listener)

        mListener = listener;
    
Methods Summary
public voidonItemSelected(android.widget.AdapterView parent, android.view.View view, int position, long id)

        if (mListener != null) {
            mListener.onNavigationItemSelected(position, id);
        }
    
public voidonNothingSelected(android.widget.AdapterView parent)

        // Do nothing