Java 类io.realm.RealmRecyclerViewAdapter 实例源码

项目:Kutuk    文件:ObjectDetailActivity.java   
private void setupRecyclerView(@IdRes int id, RealmRecyclerViewAdapter adapter) {
    RecyclerView view = (RecyclerView) findViewById(id);
    view.setLayoutManager(new LinearLayoutManager(this));
    view.setAdapter(adapter);
    view.setOverScrollMode(View.OVER_SCROLL_IF_CONTENT_SCROLLS);
}