I want to implement RadioButton and EditText inside a row of a ListView. I am using an ArrayAdapter to populate the List. But the problem is that when i am selecting a RadioButton and scroll down the list and scroll up again the Radiobutton which had been selected is unselected. Same with the content of the EditText. The text getting removed when I scroll up.
Check your adapter, you are probably don't do the job right on bindView. You have to set again on bindView the values.
I will reformulate the sentence and you will probably will understand. The newView creates only 5-10 views (as many they fit on the screen), and they are reused for other rows. If you have a ListView with 200 lines in it, actually you have only 5-10 views, and you have to make sure you update the views with the valid changes in bindView. You have to store/save the changes to an object for later reuse.
The problem is that all views that leave the screen may get destroyed to save memory on the phone. If the phone would not do this a list with 1000 entries would fill the memory of your device.
Because of that the state change that is happening to the radiobutton and the text that was inserted in the edittext will simply be deleted and if the user scrolls up the view will be recreated.
You need to save the state of the radiobutton and the edit text in your adapter and reapply the state at the moment you recreate the view for that special item in you getView method.