Fragment did not create a view
因为父类的返回不能写成这样
@Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {View swipeRefreshView = addSwipeRefreshView(inflater, container, savedInstanceState); return super.onCreateView(inflater, (ViewGroup) swipeRefreshView, savedInstanceState); }
需要写成这样。
@Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {View swipeRefreshView = addSwipeRefreshView(inflater, container, savedInstanceState); // return super.onCreateView(inflater, (ViewGroup) swipeRefreshView, savedInstanceState); return swipeRefreshView}
Fragment did not create a view相关推荐
- Fragment的onCreateView创建的view是如何加入到Activity的
** Fragment的onCreateView创建的view是如果加入到Activity的过程分析 ** 1.简单介绍一下fragment的使用 在activity的布局里添加一个ViewGroup ...
- MyEclipse Servers视窗出现“Could not create the view: An unexpected exception was thrown”错误解决办法...
MyEclipse 打开后有时候莫名的在server窗口里抛出"Could not create the view: An unexpected exception was thrown&q ...
- Android Logcat 报错:Could not create the view: For input string:
悲剧的,又重装eclipse,又重装ADT.结果是这原因.纠结. logcat报错:Could not create the view: For input string: "" ...
- Could not create the view: An unexpected exception was thrown.
Myeclipse非正常关闭后再次打开,"Servers"非正常显示,出现如下错误:Could not create the view: An unexpected excepti ...
- Could not create the view An unexpected exception……的问题
问题: 电脑突然断电,myeclipse非正常关闭,"Package Explorer"非正常显示,出现错误"Could not create the view: An ...
- MyEclipse10 Servers窗口出现“Could not create the view: An unexpected exception was thrown”解决办法
今天打开MyEclipse10,Servers突然出现"Could not create the view: An unexpected exception was thrown" ...
- SVN资源库报错:Could not create the view: org.tigris.subversion.subclipse.ui.repository.RepositoriesView
今早打开eclipse发现svn突然就出错不能使用了,关于svn的图标有的消失有的变灰,查看原来的svn库地址时报这样的错:Could not create the view: org.tigris. ...
- eclipse中svn插件突然出现错误,不能连接svn了:Could not create the view: org.tigris.subversion.subclipse.ui.repositor
今早打开eclipse发现svn突然就出错不能使用了,关于svn的图标有的消失有的变灰,查看原来的svn库地址时报这样的错:Could not create the view: org.tigris. ...
- 关于eclispe svn突然不能使用的解决方案SVN资源库报错:Could not create the view: org.tigris.subversion.subclipse.ui.repos
在开发过程中突然eclipse的svn没法使用,报错 SVN资源库报错:Could not create the view: org.tigris.subversion.subclipse.ui.re ...
最新文章
- 【LaTeX】E喵的LaTeX新手入门教程(6)中文
- OC学习篇之---归档和解挡
- BugKuCTF 加密 这不是摩斯密码
- 99.99%安卓手机存在系统安全漏洞
- Daily Scrum02 12.04
- vs环境下C++dll生成和使用(基础篇)
- 平安 开源 数据库 实践_刻意的实践-成为开源
- php跳转post,php如何使用post跳转页面
- Tableau可视化学习笔记:day01-02
- 期货价格与即期价格?
- 问卷星全自动填写脚本浅尝
- nfc apdu指令_stm32——NFC芯片PN532的使用
- python强制删除文件夹_对Python各种删除文件失败的处理方式-强制删除文件
- 阿里云 root ssh远程登录 及 普通非root用户 ssh远程登录 Ubuntu1604
- No.476 数字的补数
- 访问chm文件出现 已取消到该网页的导航的解决方法
- IJCAI 2022|边界引导的伪装目标检测模型BGNet
- 武学大陆-为啥要学IT绝世武功
- the win16 subsystem was unable to enter protected mode,DOSX.EXE must be in your AUTOEXEC.NT and pres
- Java将PDF转为图片Jpg