展会信息港展会大全

Android ListView 知识点总结
来源:互联网   发布日期:2015-11-26 11:02:41   浏览:2100次  

导读:Listview.setTextFilterEnabled(boolean):Enables or disables the type filter window. If enabled, typing when this view has focus will filter the children to match the users in......

Listview.setTextFilterEnabled(boolean):

Enables or disables the type filter window. If enabled, typing when this view has focus will filter the children to match the users input. Note that the Adapter used by this view must implement the Filterable interface.

ListView.setItemsCanFocus(boolean):

Indicates that the views created by the ListAdapter can contain focusable items.

ListView.setChoiceMode (int choiceMode):

Defines the choice behavior for the List. By default, Lists do not have any choice behavior (CHOICE_MODE_NONE). By setting the choiceMode to CHOICE_MODE_SINGLE, the List allows up to one item to be in a chosen state. By setting the choiceMode to CHOICE_MODE_MULTIPLE, the list allows any number of items to be chosen.

ListView.setTranscriptMode (int mode):

Puts the list or grid into transcript mode. In this mode the list or grid will always scroll to the bottom to show new items.

TRANSCRIPT_MODE_DISABLED

TRANSCRIPT_MODE_NORMAL

TRANSCRIPT_MODE_ALWAYS_SCROLL

ListView.setStackFromBottom(boolean stackFromBottom):

When stack from bottom is set to true, the list fills its content starting from the bottom of the view.

赞助本站

人工智能实验室

相关热词: ListView

相关内容
AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港