因为父类的返回不能写成这样

@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相关推荐

  1. Fragment的onCreateView创建的view是如何加入到Activity的

    ** Fragment的onCreateView创建的view是如果加入到Activity的过程分析 ** 1.简单介绍一下fragment的使用 在activity的布局里添加一个ViewGroup ...

  2. 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 ...

  3. Android Logcat 报错:Could not create the view: For input string:

    悲剧的,又重装eclipse,又重装ADT.结果是这原因.纠结. logcat报错:Could not create the view: For input string: "" ...

  4. Could not create the view: An unexpected exception was thrown.

    Myeclipse非正常关闭后再次打开,"Servers"非正常显示,出现如下错误:Could not create the view: An unexpected excepti ...

  5. Could not create the view An unexpected exception……的问题

    问题: 电脑突然断电,myeclipse非正常关闭,"Package Explorer"非正常显示,出现错误"Could not create the view: An ...

  6. MyEclipse10 Servers窗口出现“Could not create the view: An unexpected exception was thrown”解决办法

    今天打开MyEclipse10,Servers突然出现"Could not create the view: An unexpected exception was thrown" ...

  7. SVN资源库报错:Could not create the view: org.tigris.subversion.subclipse.ui.repository.RepositoriesView

    今早打开eclipse发现svn突然就出错不能使用了,关于svn的图标有的消失有的变灰,查看原来的svn库地址时报这样的错:Could not create the view: org.tigris. ...

  8. 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. ...

  9. 关于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 ...

最新文章

  1. 【LaTeX】E喵的LaTeX新手入门教程(6)中文
  2. OC学习篇之---归档和解挡
  3. BugKuCTF 加密 这不是摩斯密码
  4. 99.99%安卓手机存在系统安全漏洞
  5. Daily Scrum02 12.04
  6. vs环境下C++dll生成和使用(基础篇)
  7. 平安 开源 数据库 实践_刻意的实践-成为开源
  8. php跳转post,php如何使用post跳转页面
  9. Tableau可视化学习笔记:day01-02
  10. 期货价格与即期价格?
  11. 问卷星全自动填写脚本浅尝
  12. nfc apdu指令_stm32——NFC芯片PN532的使用
  13. python强制删除文件夹_对Python各种删除文件失败的处理方式-强制删除文件
  14. 阿里云 root ssh远程登录 及 普通非root用户 ssh远程登录 Ubuntu1604
  15. No.476 数字的补数
  16. 访问chm文件出现 已取消到该网页的导航的解决方法
  17. IJCAI 2022|边界引导的伪装目标检测模型BGNet
  18. 武学大陆-为啥要学IT绝世武功
  19. the win16 subsystem was unable to enter protected mode,DOSX.EXE must be in your AUTOEXEC.NT and pres
  20. Java将PDF转为图片Jpg

热门文章

  1. java的后端框架之spring详解篇一(Spring框架基础)
  2. 解决Ubuntu安装Nvidia显卡驱动的各种坑
  3. 重装windows后如何找回我的ubuntu
  4. 用SQL Developer 解决Oracle密码过期the password has expired
  5. 手机批发业务—产品选购
  6. Linux + anaconda + Pycharm 环境和命令
  7. python 正则表达式习题
  8. 普通程序员在大数据时代如何做技术的掌控者
  9. RESIDE数据集简单介绍
  10. Windows下安装(u盘)装ubuntu双系统