在RecyclerView中实现单一选择

时间:2017-09-29 20:33:13

标签: android android-recyclerview

如何通过自定义在RecyclerView中实现单一选项? 我想要与ListView中单选模式的行为相同。

1 个答案:

答案 0 :(得分:0)

如果我在这里了解你想要的样本:

$ PYENV_VERSION=3.0.1 python tail_test.py seek
Writing: somedata 0
Read: somedata 0
Writing: somedata 1
Read: somedata 1
Writing: somedata 2
Read: somedata 2
Done

$ PYENV_VERSION=3.0.1 python tail_test.py
Writing: somedata 0
Read: somedata 0
Writing: somedata 1
Read: somedata 1
Writing: somedata 2
Read: somedata 2
Done

$ PYENV_VERSION=2.7.12 python tail_test.py seek
Writing: somedata 0
Read: somedata 0
Writing: somedata 1
Read: somedata 1
Writing: somedata 2
Read: somedata 2
Done

$ PYENV_VERSION=2.7.12 python tail_test.py
Writing: somedata 0
Writing: somedata 1
Writing: somedata 2
Done

}

这不是我的工作。感谢NandagopalR

Single-Choice-RecyclerView