title: how to set ToolTip Text in android custom seekbar?
body: <p>I have a custom seekbar with drawable and it is working fine, i am trying to make tooltip text on user action over the seekbar, is there any way without using third party library, i have posted the code below which i am using for custom seekbar</p>
  
  <p>i have also attached a sample progress tooltip that i would like to achieve below </p>
  
  <p>any reference or solution would be appreciated </p>
  
  <p><a href="https://i.stack.imgur.com/mJuYX.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/mJuYX.jpg" alt="This is how i need my seekbar to look like"></a></p>
  
  <pre><code>implementation "com.android.support:appcompat-v7:${android_support_version}"
  
  seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
              @Override
              public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {
                  seekBar.setThumb(getThumb(progressValue));
                  TooltipCompat.setTooltipText(seekBar, String.valueOf(progressValue));
              }
  
              @Override
              public void onStartTrackingTouch(SeekBar seekBar) {
                  //Do nothing
              }
  
              @Override
              public void onStopTrackingTouch(SeekBar seekBar) {
                  //Do nothing
              }
          });
  
   private Drawable getThumb(int progress) {
          View thumbView = LayoutInflater.from(getActivity()).inflate(R.layout.seekbar_tv, null, false);
          ((TextView) thumbView.findViewById(R.id.tvProgress)).setText(progress + "");
          thumbView.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);
          Bitmap bitmap = Bitmap.createBitmap(thumbView.getMeasuredWidth(), thumbView.getMeasuredHeight(), Bitmap.Config.ARGB_8888);
          Canvas canvas = new Canvas(bitmap);
          thumbView.layout(0, 0, thumbView.getMeasuredWidth(), thumbView.getMeasuredHeight());
          thumbView.draw(canvas);
          return new BitmapDrawable(getResources(), bitmap);
      }
  
  &lt;!--mySeekBarInLayout--&gt;
  
  &lt;SeekBar
  android:id="@+id/seekBar_Experience"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:max="10"
  android:progressDrawable="@drawable/survey_seekbar_style"
  android:splitTrack="false"
  android:thumb="@drawable/survey_seekbar_thum" /&gt;
  
  &lt;!--survey_seekbar_thum--&gt;
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item&gt;
          &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="@color/circle_yellow"/&gt;
              &lt;size
                  android:width="30dp"
                  android:height="30dp"/&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  
  &lt;!--survey_seekbar_style--&gt;
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android" &gt;
      &lt;item
          android:id="@android:id/background"
          android:drawable="@drawable/survey_border_shadow"
          android:height="1dp"
          android:gravity="center"&gt;
      &lt;/item&gt;
  
      &lt;item
          android:id="@android:id/progress"
          android:height="4dp"
          android:gravity="center"&gt;
          &lt;clip android:drawable="@drawable/survey_seekbar_progress" /&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  
  &lt;!--survey_border_shadow--&gt;
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item&gt;
          &lt;shape&gt;
              &lt;gradient
                  android:endColor="@color/thr_dark_blue"
                  android:startColor="@color/thr_dark_blue" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  
  
  &lt;!--survey_seekbar_progress--&gt;
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list
      xmlns:android="http://schemas.android.com/apk/res/android" &gt;
      &lt;item
          android:id="@+id/progressshape" &gt;
          &lt;clip&gt;
              &lt;shape
                  android:shape="rectangle" &gt;
                  &lt;size android:height="3dp"/&gt;
                  &lt;corners
                      android:radius="5dp" /&gt;
                  &lt;solid android:color="@color/thr_dark_blue"/&gt;
              &lt;/shape&gt;
          &lt;/clip&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>