如何检查android中的水平RecyclerView方向?

时间:2017-06-10 09:00:51

标签: android android-recyclerview linearlayoutmanager

说明

我正在水平使用RecyclerView和LinearLayoutManager。在这,我试图得到方向。 Recyclerview正在从左向右或从右向左移动。

这是我的代码:

Traceback (most recent call last):
  File "/Users/biyuntian/Documents/nihao.py", line 2, in <module>
    fiddy_states = pd.read_html('http://baike.baidu.com/item/天津/132308',encoding='utf-8')
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/html.py", line 906, in read_html
    keep_default_na=keep_default_na)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/html.py", line 743, in _parse
    raise_with_traceback(retained)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/compat/__init__.py", line 344, in raise_with_traceback
    raise exc.with_traceback(traceback)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 10-11: ordinal not in range(128)

问题:

当我触摸屏幕以滚动RecyclerView项目时。它会在scrollview中进入多次。

我该怎么做?

0 个答案:

没有答案