Пример #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);
 }
Пример #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);
 }
Пример #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;
		}
Пример #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;
		}