title: How to set two different sizes for single textview in android
body: <blockquote>
    <p>In my android app i need to set two different sizes in single textview. i tried Spannable but not working correctly. what i tried was</p>
  </blockquote>
  
  <pre><code>String Amount = "Rs.109";                                     
  Spannable Passspan = new SpannableString(Amount);
  Passspan.setSpan(new RelativeSizeSpan(0.75f), 1, 3, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
  txt.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 12);   
  txt.setText(Passspan);
  </code></pre>
  
  <blockquote>
    <p>I want "Rs." as text size of 10 and rest of them as text size of 15. The total count of amount may vary to different sizes such as "Rs.109" , "Rs.1000" like that . guide me...</p>
  </blockquote>