Bindable must be on a member in an Observable class.报错解决
来源:互联网 发布:拓普康怎样导入数据 编辑:程序博客网 时间:2024/05/18 15:05
Bindable must be on a member in an Observable class.报错解决
在使用databinding时报错,实体类必须继承BaseObservable,我的实体如下:
public class Food extends BaseObservable { private String img; private String description; private String keywords; public Food(String img, String description, String keywords) { this.img = img; this.description = description; this.keywords = keywords; } @BindingAdapter("bind:img") public static void getImage(ImageView view, String url){ Picasso.with(view.getContext()).load(url).into(view); } @Bindable public String getImg() { return img; } public void setImg(String img) { this.img = img; } @Bindable public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } @Bindable public String getKeywords() { return keywords; } public void setKeywords(String keywords) { this.keywords = keywords; }}
阅读全文
0 0
- Bindable must be on a member in an Observable class.报错解决
- Name of an object member must be a string
- 解决linux 下php中xdebug的报错 :Xdebug MUST be loaded as a Zend extension in Unknown on line 0
- 报错:PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
- 解决: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
- Feign报错:Attribute 'value' in annotation,must be declared as an @AliasFor [serviceId], not [name]
- 'operator =' must be a <Unknown> member
- 报错解决Argument 1 passed to model::get***() must be an instance of Entity_hotel, instance
- The type OneInterface cannot be a superinterface of OneInterfaceImpl; a superinterface must be an in
- 解决A master URL must be set in your configuration
- 解决android报错IllegalArgumentException: parameter must be a descendant of this view
- 'UICollectionView must be initialized with a non-nil layout parameter' 报错原因及解决
- react+babel2+fis3实现jsx报错Adjacent JSX elements must be wrapped in an enclosing tag (10:0)
- dedecms报错PHP Fatal error: Call to a member function read() on a non-object in \\include\\dialog\\se
- Fatal error: Call to a member function read() on a non-object in 错误解决方法(织梦程序报错)
- oracle 《is declared in a package specification and must be defined in the package body报错原因》
- must be initialized in constructor base/member initializer list
- mysqli::stmt报Fatal error: Call to a member function bind_param() on a non-object in ...
- 观察者模式与发布订阅者模式
- 【opencv、机器学习】opencv中的SVM图像分类(二)
- poj 3321 Apple tree 解题报告
- 25个经典的Spring面试问答
- 《算法》笔记-3.1字符表
- Bindable must be on a member in an Observable class.报错解决
- 过滤器Filter的基本概述
- MSB LSB转换处理
- Python print 输出不换行
- 为什么写《Tomcat内核设计剖析》
- 使用SwipeRefreshLayout和RecyclerView实现仿“简书”下拉刷新和上拉加载
- 第十九周OJ-Q198解题方法
- IOS常见问题解决
- 利维坦——(1)