本文整理汇总了Java中com.jude.easyrecyclerview.EasyRecyclerView.setAdapter方法的典型用法代码示例。如果您正苦于以下问题:Java EasyRecyclerView.setAdapter方法的具体用法?Java EasyRecyclerView.setAdapter怎么用?Java EasyRecyclerView.setAdapter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jude.easyrecyclerview.EasyRecyclerView
的用法示例。
在下文中一共展示了EasyRecyclerView.setAdapter方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import com.jude.easyrecyclerview.EasyRecyclerView; //导入方法依赖的package包/类
private void init() {
personList = new ArrayList<>();
mAdapter = new PersonAdapter();
btn_send = (Button) this.findViewById(R.id.btn_send);
tips = (TextView) this.findViewById(R.id.tips);
btn_send_more = (Button) this.findViewById(R.id.btn_send_more);
btn_improt = (Button) this.findViewById(R.id.btn_improt);
phoneEt = (EditText) this.findViewById(R.id.phoneNumberEt);
contextEt = (EditText) this.findViewById(R.id.contextEt);
rg_all = (RadioGroup) this.findViewById(R.id.rg_all);
rv_list = (EasyRecyclerView) this.findViewById(R.id.rv_list);
progressDialog = new ProgressDialog(this);
btn_send.setOnClickListener(this);
btn_improt.setOnClickListener(this);
btn_send_more.setOnClickListener(this);
LinearLayoutManager mLayoutManager = new LinearLayoutManager(this);
rv_list.setLayoutManager(mLayoutManager);
rv_list.setItemAnimator(new DefaultItemAnimator());
rv_list.setAdapter(mAdapter);
rg_all.setOnCheckedChangeListener(this);
}
示例2: initWidget
import com.jude.easyrecyclerview.EasyRecyclerView; //导入方法依赖的package包/类
private void initWidget(){
EasyRecyclerView recyclerView=(EasyRecyclerView)findViewById(R.id.rv);
DownAdapter adapter=new DownAdapter(this);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
recyclerView.setAdapter(adapter);
adapter.addAll(listData);
}
示例3: initWidget
import com.jude.easyrecyclerview.EasyRecyclerView; //导入方法依赖的package包/类
private void initWidget() {
EasyRecyclerView recyclerView = (EasyRecyclerView) findViewById(R.id.rv);
DownAdapter adapter = new DownAdapter(this);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
recyclerView.setAdapter(adapter);
adapter.addAll(listData);
}