为ListView设计数据为空的View
来源:互联网 发布:directx9修复软件64位 编辑:程序博客网 时间:2024/05/29 18:24
第一步:将无数据的View与ListView静态布局到RelativeLayout中
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" >
<ListView
android:id="@+id/id_list_querytrouble"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ImageView
android:id="@+id/iv_bg_notrouble"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/bg_notrouble" />
</RelativeLayout>
第二步:在ListView数据为空的时候设置mListView.setEmptyView(iv_bg_notrouble);
- 为ListView设计数据为空的View
- 处理ListView数据为空的情况
- 当ListView为空时,显示特定的View
- Android ListView getChildAt View 为空
- 设置listview的数据为空时的提示
- ListView 数据为空的时候提示怎么写?
- ListView在数据为空的时候headView不显示
- Android 处理ListView数据为空
- android listView的为空时显示
- listview为空时的代码
- 处理ListView为空的情况
- View的getDrawingCache为空,解决办法
- listview设置数据为空时显示数据
- listView.setAdapter(adapter) listView为空的错误
- listview 过滤后列表为空 清空后不显示之前数据
- ListView数据为空及加载错误处理
- 安卓listView数据为空时自带方法
- EmptyRecyclerView 数据为空时显示指定view
- [USACO Training] Section 2.2
- 剑指Offer_39_平衡二叉树
- python利用pip安装包注意事项
- 虚拟内存与物理内存的区别
- iOS安全—阻止tweak注入hook api
- 为ListView设计数据为空的View
- POJ 3090 Visible Lattice Points
- Linux下安装jdk
- Python与Java之间Socket通信
- Google酝酿中名叫Fuchsia的神秘新系统
- 制作梦幻效果——背景虚化
- 【HDU】1058 - Humble Numbers(dp)
- Maven的settings.xml文件结构详解
- PCB LAYOUT三种特殊走线技巧