Back to project page peeler.
The source code is released under:
MIT License
If you think the Android project peeler listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.peeler; /*from w ww . ja va 2 s .c o m*/ import java.util.List; import android.app.ListActivity; import android.os.Bundle; import android.content.Intent; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ArrayAdapter; import android.widget.ListView; public class ArtistListView extends ListActivity { private List<Artist> list; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); list = Artist.allArtists(this); setListAdapter(new ArrayAdapter<Artist>(this, R.layout.list_item, list)); getListView().setTextFilterEnabled(true); } protected void onListItemClick(ListView l, View v, int position, long id) { ((Peeler)getParent()).setSongList(list.get(position).songs(getParent())); ((Peeler)getParent()).switchToCurrentTab(); } }