Hello all,
I am presently encountering a problem with my radio buttons that i have created in my program. The selection of the radio buttons is not unique. If i select one radio button and goes to select another one, the previous one is not unchecked. Its selection is not removed. So i can end with all radio buttons in radiogroup being selected. Can anyone tell me where i am doing it wrong?
the radiogroup as defined in my layout xml file
and the code that creates the radio buttons in my activity class file is as follows:
Help, please!
Kind regards
I am always surprised at the added knowledge i can get from others when i give my opinion on a topic.
Ibrahim,
I thank you for your quick reply. If i understand your code well. It is supposed to uncheck all the other radio butttons on selection of one in the radiogroup. I thought the radiogroup works in a way such that only one radio button can be checked in the group. I have tried your code as follows but all radio buttons can still be checked.
Any clue?
Kind regards
I am always surprised at the added knowledge i can get from others when i give my opinion on a topic.
Dear Paul
Glad to hear your problem solved. If you don't mind could you please post your solution
so, it could be reference for someone else who will have same problem.