android: how to setSelection the spinner from recyclerview

不羁岁月 提交于 2019-12-11 14:11:48

问题


I have Spinner and a RecyclerView. I could scroll the recyclerview from the spinners setOnItemSelectedListener by mLayoutManager.scrollToPosition(position);

But how to achieve the reverse. If i scroll the RecyclerView I want the spinner also change. I dont have access to spinner.setSelection within the recyclerviewer.

来源:https://stackoverflow.com/questions/48062571/android-how-to-setselection-the-spinner-from-recyclerview

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