@@ -0,0 +1,3102 @@
+package org.apache.taverna.mobile.ui.workflow;%0A%0A%0Aimport org.apache.taverna.mobile.R;%0Aimport org.apache.taverna.mobile.data.DataManager;%0Aimport org.apache.taverna.mobile.data.model.DetailWorkflow;%0Aimport org.apache.taverna.mobile.ui.adapter.WorkflowAdapter;%0Aimport org.apache.taverna.mobile.utils.ConnectionInfo;%0A%0Aimport android.os.Bundle;%0Aimport android.support.v4.app.Fragment;%0Aimport android.support.v7.widget.DefaultItemAnimator;%0Aimport android.support.v7.widget.LinearLayoutManager;%0Aimport android.support.v7.widget.RecyclerView;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport android.widget.ProgressBar;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport butterknife.BindView;%0Aimport butterknife.ButterKnife;%0A%0Apublic class WorkflowFragment extends Fragment implements WorkflowMvpView %7B%0A    public final String LOG_TAG = getClass().getSimpleName();%0A%0A    @BindView(R.id.rv_movies)%0A    RecyclerView mRecyclerView;%0A%0A    @BindView(R.id.progress_circular)%0A    ProgressBar mProgressBar;%0A%0A    private DataManager dataManager;%0A%0A    private WorkflowPresenter mWorkflowPresenter;%0A%0A    private WorkflowAdapter mWorkflowAdapter;%0A%0A    private ConnectionInfo mConnectionInfo;%0A    private int mPageNumber = 0;%0A    private List%3CDetailWorkflow%3E detailWorkflowList;%0A%0A    @Override%0A    public void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        detailWorkflowList = new ArrayList%3C%3E();%0A        dataManager = new DataManager();%0A        mWorkflowPresenter = new WorkflowPresenter(dataManager);%0A        mConnectionInfo = new ConnectionInfo(getContext());%0A    %7D%0A%0A    @Override%0A    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle%0A            savedInstanceState) %7B%0A        View rootView = inflater.inflate(R.layout.fragment_dashboard, container, false);%0A        ButterKnife.bind(this, rootView);%0A        mWorkflowPresenter.attachView(this);%0A%0A        final LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());%0A        mRecyclerView.setLayoutManager(layoutManager);%0A        mRecyclerView.setItemAnimator(new DefaultItemAnimator());%0A        showProgressbar(true);%0A        mRecyclerView.hasFixedSize();%0A        mWorkflowAdapter = new WorkflowAdapter(detailWorkflowList, getContext());%0A        mRecyclerView.setAdapter(mWorkflowAdapter);%0A        mWorkflowPresenter.loadAllWorkflow(mPageNumber);%0A        return rootView;%0A    %7D%0A%0A    @Override%0A    public void onDestroyView() %7B%0A        super.onDestroyView();%0A        mWorkflowPresenter.detachView();%0A    %7D%0A%0A    @Override%0A    public void showProgressbar(boolean b) %7B%0A        if (b) %7B%0A            mProgressBar.setVisibility(View.VISIBLE);%0A        %7D else %7B%0A            mProgressBar.setVisibility(View.GONE);%0A            mRecyclerView.setVisibility(View.VISIBLE);%0A        %7D%0A    %7D%0A%0A    @Override%0A    public void showErrorSnackBar() %7B%0A%0A    %7D%0A%0A    @Override%0A    public void showWorkflowDetail(DetailWorkflow detailWorkflow) %7B%0A        detailWorkflowList.add(detailWorkflow);%0A        mWorkflowAdapter.notifyDataSetChanged();%0A    %7D%0A%7D%0A

add workflow fragment class