/// <summary>Call this instead of getMenuView if you want to manage your own ListView. /// </summary> /// <remarks> /// Call this instead of getMenuView if you want to manage your own ListView. /// For proper operation, the ListView hosting this adapter should add /// this presenter as an OnItemClickListener. /// </remarks> /// <returns>A ListAdapter containing the items in the menu.</returns> public virtual android.widget.ListAdapter getAdapter() { if (mAdapter == null) { mAdapter = new [email protected](this); } return(mAdapter); }
public virtual [email protected] getMenuView(android.view.ViewGroup root) { if (mMenuView == null) { mMenuView = ([email protected])mInflater.inflate([email protected] .layout.expanded_menu_layout, root, false); if (mAdapter == null) { mAdapter = new [email protected](this); } mMenuView.setAdapter(mAdapter); mMenuView.setOnItemClickListener(this); } return(mMenuView); }
public virtual [email protected] getMenuView(android.view.ViewGroup root) { if (mMenuView == null) { mMenuView = ([email protected])mInflater.inflate([email protected] .layout.expanded_menu_layout, root, false); if (mAdapter == null) { mAdapter = new [email protected](this); } mMenuView.setAdapter(mAdapter); mMenuView.setOnItemClickListener(this); } return mMenuView; }
/// <summary>Call this instead of getMenuView if you want to manage your own ListView. /// </summary> /// <remarks> /// Call this instead of getMenuView if you want to manage your own ListView. /// For proper operation, the ListView hosting this adapter should add /// this presenter as an OnItemClickListener. /// </remarks> /// <returns>A ListAdapter containing the items in the menu.</returns> public virtual android.widget.ListAdapter getAdapter() { if (mAdapter == null) { mAdapter = new [email protected](this); } return mAdapter; }