code: public void setAdapter(final BaseCircularViewAdapter adapter) {
          mAdapter = adapter;
          if (mAdapter != null) {
              mAdapter.registerDataSetObserver(mAdapterDataSetObserver);
          }
          postInvalidate();
      }
docs: Set the adapter to use on this view.
  
  @param adapter Adapter to set.