Tab标签底部显示,weight均分

图片说明
我的bottom应该是在手机屏幕下面显示的,但是在我使用weight后并没有出现我想要的效果,而我在eclipse中同样的一段代码是可以的,在androidstudio却一直没有显示出来。求告知我该如何处理这个小问题。

http://blog.csdn.net/wwj_748/article/details/44224945

其中一种解决方法就是整个界面布局采用相对布局,然后把你目前的LinerLayout放入相对布局里,并设置LinerLayout位置为bottom
<?xml version="1.0" encoding="utf-8" ?>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true">

        .......加入你上面写的LinerLayout布局的内容即可
        <LinerLayout>

        </LinerLayout>

 <?xml version="1.0" encoding="utf-8" ?>
<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_alignParentBottom="true"
    android:layout_centerVertical="true"
    android:layout_centerHorizontal="true">

    .......加入你上面写的LinerLayout布局的内容即可
    <LinerLayout>

    </LinerLayout>

</RelativeLayout>

有空,我也试试,看看效果。。。。。