Кнопка поверх ListView

T2skler

Как в Layout задать расположение кнопки поверх ListView?

<!--?xml version="1.0" encoding="utf-8"?-->
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:context="ru.develop.nov.BooksDownloadActivity" tools:showin="@layout/activity_books_download">

    <listview android:id="@+id/listView1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparenttop="true" android:choicemode="multipleChoice" android:listselector="@android:color/transparent" android:dividerheight="0dp" android:divider="@android:color/transparent" android:layout_above="@+id/button">

    </listview></relativelayout>
1 ответ

T2skler

<!--?xml version="1.0" encoding="utf-8"?-->
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:context="ru.develop.nov.BooksDownloadActivity" tools:showin="@layout/activity_books_download">

    <listview android:id="@+id/listView1" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignparenttop="true" android:choicemode="multipleChoice" android:listselector="@android:color/transparent" android:dividerheight="0dp" android:divider="@android:color/transparent">

    </listview></relativelayout>

licensed under cc by-sa 3.0 with attribution.