problem in understanding wrap_content function in xml

后端 未结 2 634
不知归路
不知归路 2021-01-26 07:59

this is my code:

   

        
2条回答
  •  难免孤独
    2021-01-26 08:37

    If you want to handle your UI using weight then you should set width or height to 0. Otherwise, it will not work.

    
    
                
                
    
                
                
    
                
                
     
    

    It will look like:

提交回复
热议问题