在layout文件中使用自定义的View时遇到如下错误:
12-11 17:28:26.962: ERROR/AndroidRuntime(17121): android.view.InflateException: Binary XML file line #6: Error inflating class fish.apps.ipcall.controls.ColorableTextView
这是因为没有重载View的构造函数
public ColorableTextView(Context context, AttributeSet attrs) {
super(context, attrs);
}
相关文章
- Python从入门到精通(第2版)——pyuic5: error: no such option: -m的问题解决
- 解决安装python库时windows error5 报错的问题
- 解决PEnetwork启动的时候提示"An error occured while starting the "TCP/IP Registry Compatibility" Service (2)!"程序将立即退出的问题
- 解决执行脚本报syntax error: unexpected end of file或syntax error near unexpected token `fi'错误的问题
- 解决PHP Fatal error mysql_connect() mysql_query()的问题
- 解决clang: error: no such file or directory: such file or directory:的问题
- ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction的问题解决(备忘)
- HOW TO:解决与“HTTP 500 - Internal Server Error”(HTTP 500 – 内部服务器错误)错误信息有关的问题
- Resolve Error While Windows 10 Updating Cross Multiple Updating Versions (Such as Error 0x800f0831 when Update KB4556799) | 解决跨多个更新版本升级Windows 10时遭遇错误的问题(如 KB4556799 / 错误0x800f0831)
- 关于形如--error LNK2005: xxx 已经在 msvcrtd.lib ( MSVCR90D.dll ) 中定义--的问题分析解决