Backendless data not showing in recyclerview list fragment

I have a problem loading data from my backendless data to my list view fragment.It is always empty. Below is a copy of my code for the list fragment and the recyclerViewAdapter

//list fragment code
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
final View view = inflater.inflate(R.layout.fragment_ronin_item_list, container, false);
final RecyclerView recyclerView = (RecyclerView)view.findViewById(;

BackendlessDataQuery query = new BackendlessDataQuery();
Backendless.Data.of(Ronins.class).find(query,new AsyncCallback<BackendlessCollection<Ronins>>() {
    public void handleResponse(BackendlessCollection<Ronins> roninsBackendlessCollection) {
        ronins = roninsBackendlessCollection;

        adapter = new RoninItemRecyclerViewAdapter(totalRonins, mListener,getContext());
        recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
        Log.i("Pius", String.valueOf(totalRonins.size()));


    public void handleFault(BackendlessFault backendlessFault) {

return view;

}private void addMoreItems( BackendlessCollection<Ronins> nextPage )
//recyclerviewadapter codepublic class RoninItemRecyclerViewAdapter extends RecyclerView.Adapter<RoninItemRecyclerViewAdapter.ViewHolder> {
private List<Ronins> totalRonins = null;

private final OnListFragmentInteractionListener mListener;
private boolean isLoadingItems = false;
private  Context context;

public RoninItemRecyclerViewAdapter(List&lt;Ronins&gt; ronins, OnListFragmentInteractionListener listener, Context context) {
    this.totalRonins = ronins;
    this.mListener = listener;
    this.context = context;


public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
    View view = LayoutInflater.from(parent.getContext())
            .inflate(R.layout.fragment_ronin_item, parent, false);
    return new ViewHolder(view);

public void onBindViewHolder(final ViewHolder holder, int position) {
    final Ronins ronin = totalRonins.get(position);

    holder.mView.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            if (null != mListener) {
                // Notify the active callbacks interface (the activity, if the
                // fragment is attached to one) that an item has been selected.

public int getItemCount() {
    //return totalRonins == null ? 0 : totalRonins.size();
    Log.i("Pius", String.valueOf(+ totalRonins.size()));
    return totalRonins.size();

public void onAttachedToRecyclerView(RecyclerView recyclerView) {

public class ViewHolder extends RecyclerView.ViewHolder {
    public final View mView;
    public final TextView mIdView;
    public final TextView mContentView;
    CardView card;

    public ViewHolder(View view) {
        mView = view;
        card = (CardView)view.findViewById(;
        mIdView = (TextView) view.findViewById(;
        mContentView = (TextView) view.findViewById(;

    public String toString() {
        return super.toString() + " '" + mContentView.getText() + "'";

When I sent a breakpoint on the line where I retrieve my backendless data i get a correct size for my list but the view doesn’t populate my data

Sorry, but our support does provide a service for debugging/reviewing your (pages) of code. It appears you get the data from the backend, that means our API/service have completed its job. If you need help with the UI, we’d be happy to assist you, but that costs extra.