Code example for StyleSpan

0
    return spanned;
  } 
 
  public static CharSequence getItalicizedString(String value) {
    SpannableString spanned = new SpannableString(value);
    spanned.setSpan(new StyleSpan(Typeface.ITALIC), 0,
                    spanned.length(),
                    Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
 
    return spanned;
  } 
 
  //  public static Bitmap loadScaledBitmap(InputStream src, int targetWidth, int targetHeight) { 
  //    return BitmapFactory.decodeStream(src); 
  ////  BitmapFactory.Options options = new BitmapFactory.Options(); 
  ////  options.inJustDecodeBounds    = true; 
  ////  BitmapFactory.decodeStream(src, null, options); 
  //// 
  ////  Log.w("Util", "Bitmap Origin Width: " + options.outWidth); 
  ////  Log.w("Util", "Bitmap Origin Height: " + options.outHeight); 
  ////