@Retention(value=CLASS) @Target(value=FIELD) public @interface FromHtml
Use on a TextView field or a
TextView subclass field annotated with
ViewById to inject text as HTML.
The annotation value should be a R.string.* field that refers to string resource. If not set, the method name will be used as the R.string.* field name.
Example :
@EActivity(R.layout.main)
public class MyActivity extends Activity {
@ViewById(R.id.my_text_view)
@FromHtml(R.string.hello_html)
TextView textView;
@ViewById
@FromHtml
TextView someView;
}
public abstract int value
public abstract String resName
Copyright © 2010-2015. All Rights Reserved.