Java Code Examples for com.example.retrofit.activity.adapter.DownAdapter#addAll()

The following examples show how to use com.example.retrofit.activity.adapter.DownAdapter#addAll() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DownLaodActivity.java    From RxjavaRetrofitDemo-string-master with MIT License 5 votes vote down vote up
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);
}
 
Example 2
Source File: DownLaodActivity.java    From RxjavaRetrofitDemo-master with MIT License 5 votes vote down vote up
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);
}
 
Example 3
Source File: DownLaodActivity.java    From Rx-Retrofit with MIT License 5 votes vote down vote up
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);
}
 
Example 4
Source File: DownLaodActivity.java    From RxRetrofit-mvp with MIT License 5 votes vote down vote up
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);
}