需要在ListView中的第一个Item中加一个搜索的Edit,这个已经实现了,但是怎么让这个Item不会随整个ListView滚动。一直出现在所显示Item的第一个?

解决方案 »

  1.   

    把这个Item单独做成一个View,放在ListView上边,这样不知道能不能达到你的效果
      

  2.   

    是啊,把这个Item单独做成一个view,不然实现不了,listview都是完整的,除非你把listview源码改了,加上你想要的效果。
      

  3.   

    或者看一下ListView的方法: public void addHeaderView(View v)
     Add a fixed view to appear at the top of the list. If addHeaderView is
     called more than once, the views will appear in the order they were
      added. Views added using this call can take focus if they want.
    说的够详细了吧,还不试一下