title: Put constant text inside EditText which should be non-editable - Android
body: <p>I want to have constant text inside editText like:</p>
  
  <pre><code>http://&lt;here_user_can_write&gt;
  </code></pre>
  
  <p>User should not be able to delete any chars from "<code>http://</code>", I searched about this and found this:</p>
  
  <pre><code>editText.setFilters(new InputFilter[] {
      new InputFilter() {
          public CharSequence filter(CharSequence src, int start,
              int end, Spanned dst, int dstart, int dend) {
              return src.length() &lt; 1 ? dst.subSequence(dstart, dend) : "";
          }
      }
  }); 
  </code></pre>
  
  <p>but I don't know whether it restricts user to not delete any chars from <em>start to end</em> limit. I also could not understand use of Spanned class.</p>
  
  <p>One way would be a good choice if we can put a <code>TextView</code> inside <code>EditText</code> but I don't think it is possible in Android since both are Views, is it possible?</p>