发行与addHeaderView和失踪列表分隔 [英] Issue with addHeaderView and missing list separator

查看:174
本文介绍了发行与addHeaderView和失踪列表分隔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用

mList.addHeaderView(mHeader, null, false);

在Android的一个(不可选)头添加到我的清单。当列表被呈现的标题是不可选然而头和第一个列表项的底部之间列表分隔(行)丢失。有谁知道这个问题的解决方法?

in Android add an (unselectable) header to my list. When the list is rendered the header isn't selectable however the list separator (the line) between the bottom of the header and first list item is missing. Does anyone know a workaround for this issue?

推荐答案

尝试

mList.addHeaderView(mHeader)

在你onItemClick方法采取在考虑额外的索引。

In you onItemClick method take in consideration the extra index.

这篇关于发行与addHeaderView和失踪列表分隔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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