コード例 #1
0
 public AwesomeTextHandler addViewSpanRenderer(String pattern, ViewSpanRenderer viewSpanRenderer) {
   renderers.put(pattern, viewSpanRenderer);
   if (view != null) {
     applyRenderers();
   }
   return this;
 }
コード例 #2
0
 public void setText(String text) {
   if (view != null) {
     view.setText(text);
     applyRenderers();
   } else {
     throw new IllegalStateException("View mustn't be null");
   }
 }
コード例 #3
0
 public void setView(TextView view) {
   this.view = view;
   this.context = view.getContext();
   applyRenderers();
 }