コード例 #1
0
 private void expandAlbums() {
   albumAdapter.clear();
   for (MusicDirectory.Entry album : searchResult.getAlbums()) {
     albumAdapter.add(album);
   }
   albumAdapter.notifyDataSetChanged();
   mergeAdapter.removeAdapter(moreAlbumsAdapter);
   mergeAdapter.notifyDataSetChanged();
 }
コード例 #2
0
 private void expandSongs() {
   songAdapter.clear();
   for (MusicDirectory.Entry song : searchResult.getSongs()) {
     songAdapter.add(song);
   }
   songAdapter.notifyDataSetChanged();
   mergeAdapter.removeAdapter(moreSongsAdapter);
   mergeAdapter.notifyDataSetChanged();
 }
コード例 #3
0
 private void expandArtists() {
   artistAdapter.clear();
   for (Artist artist : searchResult.getArtists()) {
     artistAdapter.add(artist);
   }
   artistAdapter.notifyDataSetChanged();
   mergeAdapter.removeAdapter(moreArtistsAdapter);
   mergeAdapter.notifyDataSetChanged();
 }