Layout_weight with fragment and linear layout

I am trying to make a two pane layout for my app, and i’m trying to use layout_weight
but its not working correctly. It looks like it’s reversed so that the view with more weight is smaller but when I checked it didn’t even do that. Here is my xml:

    

        
            
        
        
        

    

The outer LinearLayout
has width wrap_content
, change it to match_parent

Hello, buddy!稿源:Hello, buddy! (源链) | 关于 | 阅读提示

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 移动开发 » Layout_weight with fragment and linear layout

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录