issue is in single alert box we display 16 buttons with different back
ground colors and we handling the listener for getting the result
which button is clicked(setonclick listener) but button is not
actionable(requirement is Color selector box).
It seems unlikely that just changing its colour would make any difference.
Try temporarily *not* changing the background colour of the buttons - do
they now become 'actionable'?
When you say 'not actionable', what exactly do you mean? Do you mean that
you are not going through your listener's onClick() method? How do you know
this - have you tried using a quick Toast to prove (or disprove) you are at
least getting *into* that method? (It may be getting into the method, but
something goes wrong later in the method and it doesn't complete all the
actions you are expecting).
Anything unexpected in the LogCat?
If neither of the above quick things help for testing purposes, try
temporarily creating a new project with one activity and two buttons, set
one's background colour to yellow and leave the other one with its normal
colour. Add the listener to both and put a little Toast in the onClick() to
show it gets that far. If *that* doesn't work, then post the code for that
*test* project so we can see how you're doing things (one activity + two
buttons should be a nice, short piece of code).
If the test project works, then it suggests something else in your main
project is interfering and you'll have to start commenting bits out until
you find the culprit.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en