use of me.yluo.ruisiapp.adapter.PostAdapter in project Ruisi by freedom10086.
the class PostActivity method initCommentList.
private void initCommentList() {
topicList = findViewById(R.id.topic_list);
LinearLayoutManager mLayoutManager = new LinearLayoutManager(this);
topicList.setLayoutManager(mLayoutManager);
adapter = new PostAdapter(this, this, datas);
topicList.addItemDecoration(new MyListDivider(this, MyListDivider.VERTICAL));
topicList.addOnScrollListener(new LoadMoreListener(mLayoutManager, this, 8));
topicList.setAdapter(adapter);
}
Aggregations