Hi,
I wrote my own custom view (derived from View). How can I handle
painting of it when it becomes focused / selected? Can I just do this:
protected void onDraw(Canvas canvas) {
if (isSelected()) {
// draw my selected version
}
else {
// draw normal version
}
}
secondly, if my view occupies a rect (after layout) that is 200 x 200
pixels in size - is there a way that I can specify which areas count
as a touch for selection? I don't want clicking in the upper-left
corner of my view to count as selecting the control, if possible. Any
way to block that?
Thanks
--
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