i have list views with image views and text views etc in them, and
i'm trying to fix up a situation where the background image of a list
element changes in the "pressed" state.
if there's a straightforward way of doing that, please let me know!
right now, i override onTouchEvent() in the topmost view, and also in
those child views who don't just delegate to their parents -- which
would be image views. i have to check for long clicks myself, but
basically this scheme works.
the list views are potentially different sizes depending on how much
text is in the views etc, so i thought i would use a 9-patch as the
background. however, when the background changes from flat white to
the 9-patch, this seems to indent the view a bit -- ie give it
margins.
eh? if i change the image to a non-9-patch, the margins remain as
they are. i've tried different sizes of 9-patch, from 320x150 or so
down to 100x30 etc, no change.
what's going on?
thanks
--
jason.vp.engineering.particle
--
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