Android: layout_marginBottom does not leave space at the bottom

I have a TabHost activity in my project. When I have the following XML, the tabs are off the screen and they don’t show at all.


    

        

            

        

        

    

However, if I slightly modify to look like this, the tabs show but they are not at the bottom and it is not how I want it to look.


    

        

            

            

        

        

    

Why is it not working in the first case? Isn’t layout_marginBottom supposed to make the height of the layout match_parent - margin
(which is 50dp in this case)?

Hello, buddy!责编内容来自:Hello, buddy! (源链) | 更多关于

阅读提示:酷辣虫无法对本内容的真实性提供任何保证,请自行验证并承担相关的风险与后果!
本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 移动开发 » Android: layout_marginBottom does not leave space at the bottom

喜欢 (0)or分享给?

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

使用声明 | 英豪名录