Experimental: this API is experimental and might be changed or removed in the future.

ListView.selectedIndex

切换到手册
public int selectedIndex ;

描述

项源中当前所选的项索引。如果选择了多项,则会返回第一个所选项的索引。