Search code examples
androidandroid-layoutandroid-radiobutton

Dynamically creating Multiple row radio buttons


I'm creating radio buttons dynamically based on the input .In my case layout has fixed width and height is expandable. What i want is if the radio buttons exceeds the fixed layout width , then it should automatically arrange in next row . Is this possible or manually we have to do it for next row arrangment?


Solution

  • You can try using FlowLayout which automatically arranges View when it runs out of space.