code: @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          // Setup the new range seek bar
          RangeSeekBar<Integer> rangeSeekBar = new RangeSeekBar<>(this);
          // Set the range
          rangeSeekBar.setRangeValues(15, 90);
          rangeSeekBar.setSelectedMinValue(20);
          rangeSeekBar.setSelectedMaxValue(88);
  
          // Add to layout
          FrameLayout layout = (FrameLayout) findViewById(R.id.seekbar_placeholder);
          layout.addView(rangeSeekBar);
  
          // Seek bar for which we will set text color in code
          RangeSeekBar rangeSeekBarTextColorWithCode = (RangeSeekBar) findViewById(R.id.rangeSeekBarTextColorWithCode);
          rangeSeekBarTextColorWithCode.setTextAboveThumbsColorResource(android.R.color.holo_blue_bright);
      }
docs: Called when the activity is first created.