标签:default return public method false
在adapter的getView方法中:
convertView.setOnTouchListener(this);
2.重写方法:
@Override public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub switch (event.getAction()) { case MotionEvent.ACTION_DOWN: v.setBackgroundColor(context.getResources().getColor(R.color.text_color_blue)); break; default: break; } return false; }
3.就这样;
标签:default return public method false
原文地址:http://7183397.blog.51cto.com/7173397/1650350