hi,
please don't ask me why I need to do this, but I need the following:
a scrollview with a tablelayout and instead of each tablerow I have a linearlayout with an imageview an a textview.
each tablerow should be able to be pressed. then the image of the imageview has to change (checked, unchecked).
well, the layout is done and working fine for me (the linearlayout has a backgroudn with different states using selector, so it feeld like a button).
now I have to add the onclicklisteners.
well, using ids isnt that hard.
linearlayout1 gets the eventlistener, imageview1 gets changed.
linearlayout2 gets the eventlistener, imageview2 gets changed.
linearlayout3 gets the eventlistener, imageview3 gets changed.
linearlayout4 gets the eventlistener, imageview4 gets changed.
...
I think this "hardcoded" ids sucks.
isnt there another way to do this, more elegant?
something like the DOM in javascript? like this:
ll = tablelayout.getchildren[17] <- this is the 17th linearlayout in the tablelayout
ll.getchildren[0] <- this is the imageview
greetings,
darolla


