为什么listview能显示,但是加上onIntemlistener却没反映?mfollowlistview.setAdapter(mmyfollowAdapter);
mfollowlistview.setOnItemClickListener(new OnItemClickListener() { @Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
// TODO Auto-generated method stub
Intent intent = new Intent (MyfollowActivity.this,UserhostActivity.class);
startActivity(intent);
}
});listview
mfollowlistview.setOnItemClickListener(new OnItemClickListener() { @Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
// TODO Auto-generated method stub
Intent intent = new Intent (MyfollowActivity.this,UserhostActivity.class);
startActivity(intent);
}
});listview
同3楼,里面的button要去焦点
android:descendantFocusability="blocksDescendants"