title: Using span to insert tab in textview
body: <p>Is there a way to add a tab character to a piece of text using <code>span</code> in <code>textview</code>? From the developer documentation, I came across <code>TabStopSpan</code> (<a href="http://developer.android.com/reference/android/text/style/TabStopSpan.html" rel="nofollow">see here</a>) and tried to use it in a <code>TextView</code> like so:  </p>
  
  <pre><code>String source = "Hello World! Let's select some text!!";
  
          SpannableString s = new SpannableString(source);
          s.setSpan(new TabStopSpan() {
              @Override
              public int getTabStop() {
                  return 100;
              }
          }, 5, 10, 0);
  ed.setText(s, BufferType.SPANNABLE);  
  </code></pre>
  
  <p>Where ed is a <code>TextView</code>. The above snippet does not do anything and the documentation is so less as to be pretty much useless. Is there any way to add a tab character to a <code>TextView</code> using spans?</p>