android 自定义listview不能实例化,报空指针
布局:<com.handmark.pulltorefresh.library.PullToRefreshListViewandroid:id="@+id/handpick...
布局:
<com.handmark.pulltorefresh.library.PullToRefreshListView
android:id="@+id/handpick_refreshlv"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
jar包在以前的程序中用过,是可以的.
在xml文件里报错
The following classes could not be instantiated:
- com.handmark.pulltorefresh.library.PullToRefreshListView (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse 展开
<com.handmark.pulltorefresh.library.PullToRefreshListView
android:id="@+id/handpick_refreshlv"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
jar包在以前的程序中用过,是可以的.
在xml文件里报错
The following classes could not be instantiated:
- com.handmark.pulltorefresh.library.PullToRefreshListView (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询