Move to the next item - Android- Horizontallistview

情到浓时终转凉″ 提交于 2019-12-08 03:45:38

问题


The problem is that when I call from my ListView method performItemClick() I did not turn to the method setOnItemClickListener(), and get into a method getView (). I need to call a method setOnItemClickListener() which relate to my ListView, I tried to do this with listview.performItemClick (), but nothing happened . In fact , my problem is that I just have to go to my next item in the list (listview), but there is a problem , because I have a list of looped Integer.MAX_VALUE ;. Because I just need to go to the next item on the list, I tried to do setSelection(mSelectedItem)but in my code I use HorizontalListView and when I looked into this class saw:

    @Override
public void setSelection(int position) {
    //TODO: implement
}

means that this method does not work. Why is this happening and how I could fix this?This is my class.

来源:https://stackoverflow.com/questions/27681266/move-to-the-next-item-android-horizontallistview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!