org.androidannotations.annotations
Annotation Type FromHtml


@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;
 }
 

See Also:
ViewById, HtmlRes

Optional Element Summary
 String resName
           
 int value
           
 

value

public abstract int value
Default:
-1

resName

public abstract String resName
Default:
""


Copyright © 2010-2014. All Rights Reserved.