FileDocCategorySizeDatePackage
NavItemSelectedListener.javaAPI DocAndroid 5.1 API1566Thu Mar 12 22:22:56 GMT 2015android.support.v7.internal.app

NavItemSelectedListener

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

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

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

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

        // Do nothing