首页 养生问答 疾病百科 养生资讯 女性养生 男性养生

android页面布局:如何使LinearLayout层占满页面,但不覆盖底部菜单栏?

发布网友

我来回答

2个回答

热心网友

第一种:给底部菜单栏设置具体dp值,然后LinearLayout margin_buttom那个dp值
第二种:LinearLayout外面在放一个LinearLayout 方向是vertical,然后把你要放的Linearlayout和菜单栏一起放进去,菜单栏wrap_content,LinearLayout match_parent
建议使用第一种

热心网友

<LinearLayout
android:layout_heigth = "0dp"
android:layout_weight = "1">

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com