本人小白一枚,在网上下载了一个下拉刷新的控件,导入所以后出现无法预览xml布局文件且nullpoint的错误。
代码如下
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >
    
    <com.juhe.weather.swiperefresh.PullToRefreshScrollView 
          xmlns:ptr="http://schemas.android.com/apk/res-auto"
          android:id="@+id/pull_refresh_scrollview"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:scrollbars="none"
          ptr:ptrAnimationStyle="flip"
          ptr:ptrMode="pullFromStart"
        >
      <TextView 
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="@string/filler_text"
          />
    </com.juhe.weather.swiperefresh.PullToRefreshScrollView></LinearLayout>控件内容和异常内容
百度过说使用isEditCode好像是这个吧 可以跳过,但使用后源码报错
弄了好久心态有点崩,请各位大神帮帮忙!谢谢啦!

解决方案 »

  1.   

    网上控件这么多干嘛非用这个呢,github上星星最多的一个你自己看吧https://github.com/scwang90/SmartRefreshLayout
      

  2.   

    那么要怎么导入依赖呀所以才问为什么不用AS呀,eclipse导入我还真不知道,你可以百度一下啊,你都可以换一个下拉刷新的控件, 
    http://www.52studyit.com/forum.php?mod=forumdisplay&fid=2&filter=typeid&typeid=68    这个网站有很多学习视频哦
    ,觉得不错,给我csdn点个关注┗|`O′|┛ 嗷~~
      

  3.   

    那么要怎么导入依赖呀所以才问为什么不用AS呀,eclipse导入我还真不知道,你可以百度一下啊,你都可以换一个下拉刷新的控件, 
    http://www.52studyit.com/forum.php?mod=forumdisplay&fid=2&filter=typeid&typeid=68    这个网站有很多学习视频哦
    ,觉得不错,给我csdn点个关注┗|`O′|┛ 嗷~~
    好的 谢谢啦!