Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
		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;
		}
Exemplo n.º 4
0
		/// <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;
		}