Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有像比萨饼一样的图像,我只想在单击比萨饼时实现 onClickListener?
pizzaImageView.setClickable(true); pizzaImageView.setOnClickListener(pizzaClickListener); private OnClickListener pizzaClickListener = new OnClickListener() { public void onClick(View view){ //Do code here } };