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();