Back to project page NPlayer.
The source code is released under:
Apache License
If you think the Android project NPlayer 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.qinxiandiqi.utils; // w ww. j a va 2 s. c o m import android.widget.ImageView; import com.qinxiandiqi.nplayer.R; public class AdapterUtils { public static ImageView setImageView(int position, int palyingCode, int palyingState, ImageView image, int defaultimage) { if (position == palyingCode) { switch (palyingState) { case CodeUtils.PLAYING: image.setImageResource(R.drawable.playing); break; case CodeUtils.PAUSE: image.setImageResource(R.drawable.start); break; case CodeUtils.STOP: image.setImageResource(R.drawable.stop); break; default: break; } } else { image.setImageResource(defaultimage); } return image; } }