Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我点击一个列表视图项目,我想保持它的突出显示。我该怎么做呢?
使用 ListView.setChoiceMode()。当用户触摸屏幕时,“突出显示”会消失,而试图改变这种行为会不利于一致性。选择模式旨在解决这个问题。