/**
* Changes the selection state of this view. A view can be selected or not.
* Note that selection is not the same as focus. Views are typically
* selected in the context of an AdapterView like ListView or GridView;
* the selected view is the view that is highlighted.
*
* @param selected true if the view must be selected, false otherwise
*/
public void setSelected(boolean selected) {
...................................}View selected
本文介绍了一种方法来改变视图的选中状态。详细解释了如何通过setSelected方法来控制视图是否被选中,并指出选中状态不同于获取焦点的概念。在如ListView或GridView等AdapterView中,选中的视图通常是高亮显示的那个。


被折叠的 条评论
为什么被折叠?



