Search in sources :

Example 1 with DefaultFooter

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");
}
Also used : adapter.main_recycle_adapter(adapter.main_recycle_adapter) ImagePath(bean.ImagePath) StaggeredGridLayoutManager(android.support.v7.widget.StaggeredGridLayoutManager) DefaultFooter(com.liaoinstan.springview.container.DefaultFooter)

Aggregations

adapter.main_recycle_adapter (adapter.main_recycle_adapter)1 StaggeredGridLayoutManager (android.support.v7.widget.StaggeredGridLayoutManager)1 ImagePath (bean.ImagePath)1 DefaultFooter (com.liaoinstan.springview.container.DefaultFooter)1