Android 按钮未显示在屏幕上

Android 按钮未显示在屏幕上,android,android-listview,Android,Android Listview,我已经创建了一个应用程序,在其中我用图像和文本显示listview。我在页面末尾添加了一个按钮。但这并没有显示在屏幕上。我是android新手。我如何解决这个问题 以下是我的UI XML代码: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_pa

我已经创建了一个应用程序,在其中我用图像和文本显示listview。我在页面末尾添加了一个按钮。但这并没有显示在屏幕上。我是android新手。我如何解决这个问题

以下是我的UI XML代码:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="8dp"
tools:context=".MainActivity" 
android:background="@drawable/maps">

<TextView
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:text="@string/WAYLF"
  android:gravity="center"
  android:textSize="22sp" />

<ListView
    android:id="@+id/list_view"
    android:dividerHeight="4dp"
    android:cacheColorHint="@android:color/transparent"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

<Button
 android:layout_width="match_parent"
 android:layout_height="35dp"
 android:text="@string/NEXT"
 android:background="@android:color/holo_green_light"
 android:layout_marginTop="25dp" />


android:layout\u height=“0dip”
android:layout\u weight=“1”
设置为
ListView
,如下所示

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/maps"
    android:orientation="vertical"
    android:padding="8dp"
    tools:context=".MainActivity" >

    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:text="@string/WAYLF"
        android:textSize="22sp" />

    <ListView
        android:id="@+id/list_view"
        android:layout_width="match_parent"
        android:layout_height="0dip"
        android:layout_weight="1"
        android:cacheColorHint="@android:color/transparent"
        android:dividerHeight="4dp" />

    <Button
        android:layout_width="match_parent"
        android:layout_height="35dp"
        android:layout_marginTop="25dp"
        android:background="@android:color/holo_green_light"
        android:text="@string/NEXT" />

</LinearLayout>


放入
相对位置
栏位,然后设置一个静态
边距栏位
,该边距栏位等于listview按钮的高度,然后将该按钮放在栏位底部

我在10以下..那么我该怎么做呢?在答案的左上角,有一个勾号…点击它。@Amiya…你应该通过接受答案来结束这个问题,因为你得到了答案。