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

前端 未结 3 2346
醉话见心
醉话见心 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:18

    Is putting the TextView inside of the RadioGroup valid (or, good practice)?

    RadioGroup is just a LinearLayout that happens to also handle RadioButton exclusion rules (i.e., "there can only be one...checked, that is"). I see no particular problems in having a TextView inside a RadioGroup.

提交回复
热议问题