Android: How to make RadioGroup work correctly in a ListView?
Posted
by TianDong
on Stack Overflow
See other posts from Stack Overflow
or by TianDong
Published on 2010-05-30T04:45:47Z
Indexed on
2010/05/30
4:52 UTC
Read the original article
Hit count: 686
Hello! I have a ListView, which has a TextView and a RadioGroup with 4 RadioButtons as Children in each row. Now i can select a RadioButton in each row. But if i scroll the ListView, my Selection is gone or it does not showed correctly. For example, i choose the RadioButton A in the first row, if i scroll through the ListView and then go back to the first row again, either none of the RadioButtons in the RadioGroup is checked or RadioButton C is checked instead of A. How can i fix this Problem? I have tried 7 days already, but still i find no solution. Can anybody help me? I'll be very appriciate of that.
© Stack Overflow or respective owner