Search in sources :

Example 1 with EmptyPandaView

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;
}
Also used : EmptyPandaView(com.instructure.candroid.view.EmptyPandaView) PandaRecyclerView(com.instructure.pandarecycler.PandaRecyclerView) RubricDecorator(com.instructure.candroid.decorations.RubricDecorator) AdapterToFragmentCallback(com.instructure.candroid.interfaces.AdapterToFragmentCallback) BeforePageView(com.instructure.canvasapi2.utils.pageview.BeforePageView) PageView(com.instructure.canvasapi2.utils.pageview.PageView) EmptyPandaView(com.instructure.candroid.view.EmptyPandaView) View(android.view.View) PandaRecyclerView(com.instructure.pandarecycler.PandaRecyclerView) RubricRecyclerAdapter(com.instructure.candroid.adapter.RubricRecyclerAdapter)

Aggregations

View (android.view.View)1 RubricRecyclerAdapter (com.instructure.candroid.adapter.RubricRecyclerAdapter)1 RubricDecorator (com.instructure.candroid.decorations.RubricDecorator)1 AdapterToFragmentCallback (com.instructure.candroid.interfaces.AdapterToFragmentCallback)1 EmptyPandaView (com.instructure.candroid.view.EmptyPandaView)1 BeforePageView (com.instructure.canvasapi2.utils.pageview.BeforePageView)1 PageView (com.instructure.canvasapi2.utils.pageview.PageView)1 PandaRecyclerView (com.instructure.pandarecycler.PandaRecyclerView)1