listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
switch ()
play(musicInfos.get(position).path);
//Intent intent = new Intent(MainActivity.this,PlayActivity.class);
// startActivity(intent);
}
});
switch(position){
case 0:
Intent intent = new Intent(MainActivity.this,PlayActivity.class);
startActivity(intent);
//点击第一个Item,调整到界面1,其中intent可携带参数
break;
case 1:
break;
……
}