Android TextView Set setBold(TextView tv)

Here you can find the source of setBold(TextView tv)

Description

set Bold

Declaration

public static void setBold(TextView tv) 

Method Source Code

//package com.java2s;
import android.text.TextPaint;
import android.widget.TextView;

public class Main {

    public static void setBold(TextView tv) {
        TextPaint tp = tv.getPaint();// w  ww  . j  a v  a 2s  .  c o  m
        tp.setFakeBoldText(true);
    }
}

Related

  1. setText(TextView tv, String str)
  2. setText(TextView tv, int str)
  3. setHtml(TextView view, String html)
  4. setHtml(Activity activity, View parent, int elementId, int resId)
  5. initDate(TextView view,int days)
  6. manageVisibiltyFieldSpeech(Context context, ImageButton button, AutoCompleteTextView text, int idRightof, int idLeftOf, int idBelow)
  7. setupMarquee(TextView textView, String text)