I implemented a radiobutton with edittext as shown

I did this by manually placing an EditText
outside the RadioGroup
, adjacent to the last RadioButton
and implemented a logic to get the value of editext when the last RadioButton
is selected.
Now I want to make a custom RadioButton
with this functionality that is also compatible with the radio group.
My approach has been to inflate the EditText
inside the RadioButton
and then use it in a RadioGroup
but no luck so far.
Any suggestions with this approach or any different approach are appreciated!