Android Open Source - EnklawaPlayer Play Queue Nav Item

From Project

Back to project page EnklawaPlayer.


The source code is released under:

GNU General Public License

If you think the Android project EnklawaPlayer 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 macbury.pod.navigation_drawer.items;
/* w w  w.ja  v  a  2  s. c  o  m*/
import android.content.Context;

import be.webelite.ion.Icon;
import macbury.pod.R;
import macbury.pod.fragments.main.episodes.PlaylistFragment;
import macbury.pod.managers.App;

 * Created by macbury on 22.09.14.
public class PlayQueueNavItem extends NavItemFragment {
  private PlaylistFragment fragment;

  public PlayQueueNavItem(Context context) {

  public String getTitle() {
    return context.getString(R.string.nav_play_queue);

  public Icon getIcon() {
    return Icon.ion_music_note;

  public int getCount() {
    return (int) App.current().db.queue.count();

  public int getColorResource() {
    return context.getResources().getColor(R.color.queue_episodes);

  public Fragment getFragment() {
    if (fragment == null) {
      fragment = new PlaylistFragment();
    return fragment;

Java Source Code List