How to handle Button click and Listview click on a single row?
问题 I want to click on ListView and perform some operation in the onItemClickListener listener, also on each row I have a button to perform some other operations. How can I do this? 回答1: You can try this: public class buttonWithList extends ListActivity { /** Called when the activity is first created. */ String[] items={"azhar","j"}; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); setListAdapter(new bsAdapter(this)); }