整个程序中用了多个listview,有什么好的方法能获得每个listview的选中行数和总行数?
我现在是在listview的onselectitem里调用一个过程refreshlv,这个过程统计当前listview的selcount和items.count值,显示在statusbar中。
但是,有些listview的onselectitem需要写其他代码,这时候,就要把refreshlv这个过程加在这个listview的onselectitem中,这样比较麻烦。
不知道有没有更好的更简单的方法能实现?