Android Open Source - peeler Album List View






From Project

Back to project page peeler.

License

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.

Java Source Code

package com.example.peeler;
/*from w  w  w  . j av  a  2 s  .c om*/
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 AlbumListView extends ListActivity {
  private List<Album> list;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    list = Album.allAlbums(this);
    setListAdapter(new ArrayAdapter<Album>(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();
  }
}




Java Source Code List

com.example.peeler.AirPlayer.java
com.example.peeler.AlbumListView.java
com.example.peeler.ArtistListView.java
com.example.peeler.Common.java
com.example.peeler.CurrentSongView.java
com.example.peeler.DeviceView.java
com.example.peeler.GenreListView.java
com.example.peeler.MDNS-SD.java
com.example.peeler.Peeler.java
com.example.peeler.PlaylistListView.java
com.example.peeler.RAOPDevice.java
com.example.peeler.RTSP.java
com.example.peeler.SongListView.java
com.example.peeler.Streamer.java