LinearLayout only show first item

前端 未结 3 989
Happy的楠姐
Happy的楠姐 2021-01-29 09:24

I got problem with LinearLayout, it only shows the first child. I found a solution but i not work.
Here my xml:



        
3条回答
  •  [愿得一人]
    2021-01-29 09:37

    You have defined ImageView's width as MATCH_PARENT so it will take the whole of it's parent and while the parent is HORIZONTAL then the second view will never shown. this may help you

    
    
        
    
    
    
    
    
        
    
        
    
    
    

提交回复
热议问题