Code example for TextPaint

  private int lines;
  protected int selectionStart = -1;
  protected int selectionEnd = -1;
  private Typeface typeface;
  private InputFilter[] inputFilters;
  private TextPaint textPaint = new TextPaint();
  private List<TextWatcher> watchers = new ArrayList<TextWatcher>();
  private List<Integer> previousKeyCodes = new ArrayList<Integer>();
  private List<KeyEvent> previousKeyEvents = new ArrayList<KeyEvent>();
  private Layout layout;
  private int paintFlags;
  public void setTextAppearance(Context context, int resid) {
    textAppearanceId = resid;
    directlyOn(realTextView, TextView.class).setTextAppearance(context, resid);
Connect your IDE to all the code out there  Get Codota for Java