本人小白一枚,在网上下载了一个下拉刷新的控件,导入所以后出现无法预览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好像是这个吧 可以跳过,但使用后源码报错
弄了好久心态有点崩,请各位大神帮帮忙!谢谢啦!
代码如下
<?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好像是这个吧 可以跳过,但使用后源码报错
弄了好久心态有点崩,请各位大神帮帮忙!谢谢啦!
http://www.52studyit.com/forum.php?mod=forumdisplay&fid=2&filter=typeid&typeid=68 这个网站有很多学习视频哦
,觉得不错,给我csdn点个关注┗|`O′|┛ 嗷~~
http://www.52studyit.com/forum.php?mod=forumdisplay&fid=2&filter=typeid&typeid=68 这个网站有很多学习视频哦
,觉得不错,给我csdn点个关注┗|`O′|┛ 嗷~~
好的 谢谢啦!