Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 底部导航栏下方的空间_Java_Android_Android Studio - Fatal编程技术网

Java 底部导航栏下方的空间

Java 底部导航栏下方的空间,java,android,android-studio,Java,Android,Android Studio,我对Android studio IDE不太了解,但有人要求我解决这个问题,我认为导航栏下有空白,但我无法确定问题所在 无限代码 <TextView android:layout_gravity="center_horizontal" android:ellipsize="end" android:singleLine="true" android:height="15px" android:gravity="center"

我对Android studio IDE不太了解,但有人要求我解决这个问题,我认为导航栏下有空白,但我无法确定问题所在

无限代码

<TextView android:layout_gravity="center_horizontal"
        android:ellipsize="end"
        android:singleLine="true"
        android:height="15px"
        android:gravity="center"
        android:layout_alignParentBottom="true"
        android:layout_height="wrap_content"
        android:layout_width="fill_parent"
        android:layout_marginBottom="55dip"
        android:id="@+id/Tab.Title" android:text="@+id/Tab.Title"
        style="@style/Tab.Title" />


    <LinearLayout android:id="@+id/BottomBarLayout"
        android:layout_width="fill_parent" android:layout_height="wrap_content"
        android:background="@drawable/tb_background_bottom" android:scaleType="fitXY"
        android:layout_alignParentBottom="true" android:weightSum="0"
       >

        <ImageButton android:layout_height="wrap_content"
            android:id="@+id/PreviousBtn" android:layout_width="wrap_content"
            android:background="@drawable/buttons_bottom"
            android:src="@drawable/ic_btn_next" android:layout_weight="1">
            </ImageButton>

        <ImageButton android:layout_height="wrap_content"
            android:id="@+id/NewTabBtn" android:layout_width="wrap_content"
            android:background="@drawable/buttons_bottom"
            android:src="@drawable/ic_btn_home" android:layout_weight="1"></ImageButton>


    </LinearLayout>

我假设您想要将导航栏移动到最底部的位置,或者想要将背景内容视图缩短,以便导航栏是屏幕上的最低元素

对于
线性布局
,您需要使用
android:layout_marginBottom=“-5dp”

您不必使用
android:layout\u alignParentBottom=“true”
,因为边距设置将覆盖这些对齐


我们可以根据视图要求调整边距。尝试不同的边距值。

请创建一个。只需将android:layout_marginBottom=“将您的大小放入dp(尝试0 dp)”放入线性布局即可