Custom View in Relative Layout overlapping other Custom Views
i'm using a relative layout with a couple of custom views. Each custom
view is a collored square, drawn on an own canvas. I want to add a
clicklistener to each custom view. Now when adding all Views(with
clicklistener) to the layout , only the last custom view added is
clickable even when clicking beside the square. Perhaps the problem is
that the canvas of this View is overlapping the other canvases. I can see
that by setting the backround of each view black. --> only the last view
is visible with black background. how can i avoid that problem (without
using ontouch and coordinate request) how can i remove that transparent
canvas which i am not using.
No comments:
Post a Comment