Hi,
I have a very customized ListView, and the items have a callback to set
their background when they're touched:
OnTouchListener listener = new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent e) {
if (e.getAction() != MotionEvent.ACTION_CANCEL) {
// here!
v.setBackgroundResource(android.R.drawable.list_selector_background);
}
else {
v.setBackgroundResource(0);
}
return false;
}
};
But when I
call v.setBackgroundResource(android.R.drawable.list_selector_background),
the item is affected: its height grows and the content is moved. Is there
any way to fix the item size, so it doesn't grow when the background is
changed?
Thanks in advance,
Esdras
--
http://www.esdrasbeleza.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en