Code example for AbsListView

Methods: setEmptyView, setOnItemClickListener

0
			throw new RuntimeException("Your content must have a ListView whose id attribute is "
					+ "'android.R.id.list'"); 
		} 
		if (emptyView != null)
		{ 
			mList.setEmptyView(emptyView);
		} 
		mList.setOnItemClickListener(mOnClickListener);
		if (mFinishedStart)
		{ 
			setListAdapter(mAdapter);
		} 
		mHandler.post(mRequestFocus);
		mFinishedStart = true;
	} 
 
	@TargetApi(11) 
	public void setListAdapter(ListAdapter adapter)
	{ 
		synchronized (this)
		{