void setText(int section) {
        String newText;
        try{
            T adapter = (T) materialScrollBar.recyclerView.getAdapter();
            if  (adapter == null) {
                Log.e("MaterialScrollBarLib", "The adapter for your recyclerView has not been set; " +
                        "skipping indicator layout.");
                return;
            }
            newText = getTextElement(section, adapter);
        } catch (IndexOutOfBoundsException e) {
            newText = "Error";
        }
        if(!textView.getText().equals(newText)) {
            textView.setText(newText);

            LayoutWrapContentUpdater.wrapContentAgain(this);
        }
    }
Sets the content text for the indicator and resizes if needed
lib/src/main/java/com/turingtechnologies/materialscrollbar/Indicator.java