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.
嗨,我有带有歌曲列表的列表视图。我想在当前播放的歌曲上绘制小图标并从下一首歌曲开始播放并设置为该歌曲时删除。任何帮助代码片段都会被应用
将图标添加到您的列表视图中,首先使其不可见,然后在 java 中编写代码
if(SongIndex !=position){ Image.setvisibility(View.Invisible) } else{ Image.setvisibility(View.Visible) } notifydatasetchanged();