ListView.addFooterView(五)不显示 [英] ListView.addFooterView(v) not displaying

查看:250
本文介绍了ListView.addFooterView(五)不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个布局内声明的一个ListView。当我addFooterView(五)不显示。可能是什么原因?是否有ListView控件或某些设置我的适配器,以立即做出该显示器吗?它最终显示,但只有重新初始化的看法,适配器和所有之后。

I have a ListView declared inside a layout. When I addFooterView(v) it does NOT display. What are the possible reasons for this? Is there some setting in ListView or my Adapter to make this display immediately? It does eventually display but only after reinitializing the view, adapter and all.

更新:看来,重置适配器终于使它看起来....显然不是东西,我应该做的,每次我打电话addFooterView(V)

Update: It seems that resetting the adapter finally makes it appear .... Obviously not something that I should have to do everytime I call addFooterView(v).

包含ListView控件的视图是由内维持PageViewer一个视图,以便不知道这影响此与否。

The view containing the ListView is inside a View maintained by PageViewer so not sure if that effects this or not.

推荐答案

添加页脚视图,然后再设定适配器,我们可以当我们无法看到您的code复制的唯一的事。

Add the footer view before you set the adapter is the only thing we can replicate with when we are not able to see your code.

这篇关于ListView.addFooterView(五)不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆