美文网首页
RecyclerView的距离每次点击的时候拉长

RecyclerView的距离每次点击的时候拉长

作者: 皓皓amous | 来源:发表于2019-06-03 14:20 被阅读0次

    把RecyclerView的Manager的设置写在OnCreate()方法里面

    private void initSetRecyclerViewManger() {
    histtoryshowarea.setLayoutManager(new LinearLayoutManager(this));
    histtoryshowarea.addItemDecoration(new DividerItemDecoration(this,DividerItemDecoration.VERTICAL));
    }

    相关文章

      网友评论

          本文标题:RecyclerView的距离每次点击的时候拉长

          本文链接:https://www.haomeiwen.com/subject/npscxctx.html