Code example for TextPaint

0
  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;
 
 
  @Implementation 
  public void setTextAppearance(Context context, int resid) {
    textAppearanceId = resid;
    directlyOn(realTextView, TextView.class).setTextAppearance(context, resid);
  } 
 
  @Implementation