chawei0397
2017-09-25 07:13在ListVIEW上方和下方添加textview和button控件没有显示
<?xml version="1.0" encoding="utf-8"?>
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textColor="#000000"
android:text="@string/number"/>
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textColor="#000000"
android:text="@string/force"/>
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textColor="#000000"
android:text="@string/angle"/>
<!-- 添加一个ListView控件 -->
<ListView
android:id="@+id/lv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:id="@+id/bt5"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/bt5"
/>
- 点赞
- 回答
- 收藏
- 复制链接分享
5条回答
为你推荐
- Android activity跳转闪退
- android-studio
- android
- xml
- 2个回答
- simpleAdapter listview item 传值
- android
- 0个回答
- listview每个item上的每个button的点击事件都触发了,适配器每次都找了最后一个textview
- android
- 1个回答
- 自定义Dialog,布局里面有个ListView 和一个Textview 。。。。。
- onitemclicklistener
- 布局
- android
- list
- 4个回答
- 程序运行后,不崩溃但一片空白
- 适配器
- android
- 编程
- list
- spinner
- 6个回答