xUtils框架中关于注解的使用

添加完布局之后,加入

ViewUtils.inject(this); //注入view和事件
在fragment或pager中
 View view = inflater.inflate(R.layout.bitmap_fragment, container, false); // 加载fragment布局
    ViewUtils.inject(this, view); //注入view和事件
    ...

再注解使用

@ViewInject(R.id.textView)
TextView textView;
关于更多xUtils框架的使用,详见
http://blog.csdn.net/dj0379/article/details/38356773


添加完布局之后,加入

你可能感兴趣的:(xUtils框架中关于注解的使用)