综合技术

Place two layouts one from the other

微信扫一扫,分享到朋友圈

Place two layouts one from the other
0

My layout look like this:



    

        

            
        

    

    

        

        

        

        

    

I want the two linear layers to look like this:

the red layout will be for buttons ,and the green layout will be for changeable screens

I’m developing in android studio . I need the red layout to fill a fixed width the the green layout to fill the rest of the screen.

i want to get rid of the empty space i marked in red

set android:weightSum="1"
in main layout and give android:layout_weight
( layout_width should be 0dp when you set layout_weight
) to other two layouts

    

        

            

                
            
        

        

            

            

            

            
        

    

阅读原文...


Hello, buddy!

FPGA设计千兆以太网MAC(2)——以太网协议及设计规划

上一篇

用小程序切入图书管理市场,「今日图书」在做的是一门好生意吗?

下一篇

您也可能喜欢

评论已经被关闭。

插入图片
Place two layouts one from the other

长按储存图像,分享给朋友