getSherlockActivity().findViewById(android.R.id.list);
new OnItemClickListener() {
@Override
public void onItemClick(AdapterView <? > arg0, View arg1, int position,
long id) {
// TODO Auto-generated method stub
Toast.makeText(getSherlockActivity(),
"You selected :", Toast.LENGTH_SHORT).show();
}
};
我正在尝试向我的活动添加一个事件侦听器,但根本没有显示 toast 消息。我从onCreateView
方法中调用这段代码