我在一个按钮和一个列表视图里面使用线性布局.. list-view在运行时动态地添加它的项目.. 所以那时按钮落后列表视图和不可见以及列表视图适合整个布局。android-想把按钮放在listview上面
我想提出的按钮列表视图之上,它也必须保持装列表视图后提前
感谢
我的.xml文件是:
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#000000">
<Button
android:id="@+id/btn_searchNewDevices"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dip"
android:layout_gravity="left"
android:background="#000000"
android:textColor="#FFFFFF"
android:text="Search New Devices"
/>
<ListView
android:id="@+id/lst_add_newDevices"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="horizontal" >
</ListView>
</LinearLayout>
这里是搜索新设备按钮。
对蓝牙该按钮设备搜索点击添加到列表视图
所以这件事在我的应用程序发生..
直到它不工作.. –