use of com.liaoinstan.springview.container.DefaultFooter in project GomoTest by suReZj.
the class MainActivity method initView.
private void initView() {
toolbar = (Toolbar) findViewById(R.id.activity_main_toolbar);
toolbar.setTitleTextColor(getResources().getColor(R.color.white));
setSupportActionBar(toolbar);
recyclerView = (RecyclerView) findViewById(R.id.activity_main_recyclerView);
layoutManager = new StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.VERTICAL);
recyclerView.setLayoutManager(layoutManager);
adapter = new main_recycle_adapter(list, MainActivity.this);
recyclerView.setAdapter(adapter);
pathList = DataSupport.findAll(ImagePath.class);
setImage(page);
springView = (SpringView) findViewById(R.id.activity_main_frame);
springView.setFooter(new DefaultFooter(MainActivity.this));
// list.add("http://7xi8d6.com1.z0.glb.clouddn.com/2017-01-20-030332.jpg");
// list.add("http://7xi8d6.com1.z0.glb.clouddn.com/2017-02-27-tumblr_om1aowIoKa1qbw5qso1_540.jpg");
}
Aggregations