use of com.instructure.candroid.view.EmptyPandaView in project instructure-android by instructure.
the class RubricFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_list, container, false);
rootView.findViewById(R.id.fragment_container).setBackgroundColor(Color.WHITE);
EmptyPandaView emptyRubricView = (EmptyPandaView) rootView.findViewById(R.id.emptyPandaView);
mRecyclerAdapter = new RubricRecyclerAdapter(getContext(), getCanvasContext(), new AdapterToFragmentCallback() {
@Override
public void onRowClicked(Object o, int position, boolean isOpenDetail) {
}
@Override
public void onRefreshFinished() {
setRefreshing(false);
}
});
configureRecyclerView(rootView, getContext(), mRecyclerAdapter, R.id.swipeRefreshLayout, R.id.emptyPandaView, R.id.listView);
PandaRecyclerView pandaRecyclerView = (PandaRecyclerView) rootView.findViewById(R.id.listView);
pandaRecyclerView.addItemDecoration(new RubricDecorator(getContext()));
return rootView;
}
Aggregations