horizontalscrollview onclicklistener doesn't get called
问题 i have horizontalscrollview displaying some items. The items are added dynamically. i want to show a alert box when the horizontalscrollview is clicked. there may or may not be any items in the horizontalscrollview so i want the horizontalscrollview to take the cick. But OnClickListener dosint get called scrolv.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub slowAlert(); } }); showAlert() never gets called 回答1: One thing