我有一个RecyclerView有3个图像,红色,黄色和绿色。我想要做的是,如果用户点击图像,它应循环显示图像:
这是onBindViewHolder:
$('#calender').fullCalendar({
events: function (start, end, timezone, callback) {
callback(eventsarray);
}
});
哪个电话:
public void onBindViewHolder(ViewHolder holder, int position){
PlayerDetails thePlayer = playerDataSet.get(position);
holder.playerView.setText(thePlayer.name+ " " + thePlayer.number);
holder.greenView.setVisibility(ManualPlayingChange.isToMight(holder.greenView));
holder.redView.setVisibility(ManualPlayingChange.mightToNot(holder.redView));
// holder.playingViews[1].setVisibility((ManualPlayingChange.isToMight(holder.playingViews)));
//holder.playerView.setText(i.number);
}
如何创建一个If语句,如果单击则循环到下一个图像?