It's possible to put a TextView inside of a RadioGroup. But, is it good practice?

前端 未结 3 2244
醉话见心
醉话见心 2021-02-20 17:38

What I\'m trying to accomplish: When the user clicks a specific RadioButton, a TextView should appear immediately below the selected RadioButton.

3条回答
  •  没有蜡笔的小新
    2021-02-20 18:15

    Two options:

    1. Doing something similar as you said but it doesn't need to be inside the RadioGroup. Making the TextView visible when the user clicks on the RadioButton.
    2. Perhaps you can do something with a ViewStub. Check this link.

提交回复
热议问题