RadioGroup with two columns which have ten RadioButtons

后端 未结 12 2018
难免孤独
难免孤独 2020-11-27 07:16

I have a RadioGroup and I want to align buttons next to each other in two columns and five rows and I am unable to achieve it. Things I have tried:

12条回答
  •  清歌不尽
    2020-11-27 07:41

    If the layout is not complicated, best way is to use Single RelativeLayout instead of multiple Linear Layouts.

    Below is the code with 2 rows. First row has 3 columns. Second row one column.

                
    
                    
    
                        
    
                        
    
                        
    
                        
                    
                
    

提交回复
热议问题