添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
心软的数据线  ·  Refused to display in ...·  4 周前    · 
从容的木耳  ·  How to display UInt ...·  3 周前    · 
不拘小节的砖头  ·  Printing data from ...·  3 周前    · 
发怒的花卷  ·  Trying to run a ...·  1 周前    · 
冲动的显示器  ·  Uses of Interface ...·  7 月前    · 
腹黑的铅笔  ·  notepad怎么注释代码 - ...·  7 月前    · 
刚分手的红薯  ·  黎以局势紧张 ...·  8 月前    · 
I create a recyclerview with adapter, i use a ws that provide all the available merchants but  i want to display only 4 element.
I had the idea of ​​creating an empty array and fill it with the 4 element but an error appear "    java.lang.ArrayIndexOutOfBoundsException: length=0; index=0"
how can i  display only 4 element in recyclerview ?
the following code for adapter :


and this contain the activity :