Search in sources :

Example 1 with RepositoryPresenter

use of com.marshalchen.ultimateandroid.demo.presenter.RepositoryPresenter in project UltimateAndroid by cymcsg.

the class MainActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    ButterKnife.bind(this);
    repositoryPresenter = new RepositoryPresenter(this);
    //repositoryPresenter.loadRepositoryInfo();
    repositoryPresenter.loadRepositoryInfo();
    mainRecyclerview.setHasFixedSize(true);
    mLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false);
    mainRecyclerview.setLayoutManager(mLayoutManager);
}
Also used : RepositoryPresenter(com.marshalchen.ultimateandroid.demo.presenter.RepositoryPresenter) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 RepositoryPresenter (com.marshalchen.ultimateandroid.demo.presenter.RepositoryPresenter)1