Comments (6)
@Aspsine 问题确实和注解工具无关,我的 listview 自定义了id ,而非是 (swipe_target )引起异常
from swipetoloadlayout.
SwipeToLoadLayout对contentView, headerView, footerView的id是有要求的。
请参考step 3来设置正确的id
https://github.com/Aspsine/SwipeToLoadLayout/wiki/Quick-Setup
from swipetoloadlayout.
系统异常退出。
android.view.InflateException: Binary XML file line #14: Error inflating class com.aspsine.swipetoloadlayoutdemo.RefreshHeaderView
Binary XML file line #14: Error inflating class com.aspsine.swipetoloadlayoutdemo.RefreshHeaderView
<com.aspsine.swipetoloadlayout.SwipeToLoadLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.aspsine.swipetoloadlayoutdemo.RefreshHeaderView
android:id="@id/swipe_refresh_header"
android:layout_width="match_parent"
android:layout_height="100dp"
android:gravity="center" />
<com.jude.easyrecyclerview.EasyRecyclerView
android:id="@+id/swipe_target"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<com.aspsine.swipetoloadlayoutdemo.LoadMoreFooterView
android:id="@id/swipe_load_more_footer"
android:layout_width="match_parent"
android:layout_height="100dp"
android:gravity="center" />
</com.aspsine.swipetoloadlayout.SwipeToLoadLayout>
id已经改过来了 但是还是不行
from swipetoloadlayout.
确定一下:
com.aspsine.swipetoloadlayoutdemo.RefreshHeaderView
和
com.aspsine.swipetoloadlayoutdemo.LoadMoreFooterView
是否正确。
这两个view你需要从demo中复制到你的项目中,然后更改为你项目中的路径才可以使用。
from swipetoloadlayout.
出现这个问题 ,是不能注解之类的工具 是吗?
from swipetoloadlayout.
@ycyangchun
可以使用注解工具。上面的错误和注解工具没有关系。
需要保证:
- id正确。
- view路径正确。
from swipetoloadlayout.
Related Issues (20)
- ListView emptyView,求指教 怎么处理。 HOT 1
- maven库拉不下来,能不能换到jcenter库
- 请问如何配置下拉阻力系数?下拉时越往下移动距离越小 HOT 1
- 事件拦截!!!急 HOT 3
- 瀑布流的上拉刷新,如何处理才能不显示不对齐的空白
- 正在刷新的状态下,reclycleview居然可以上滑 HOT 1
- 当嵌套ListView发现滑动冲突问题 HOT 1
- 上拉或下拉 刷新时 SwipeTrigger void onMove(int y, boolean isComplete, boolean automatic);
- onMove(int y, boolean isComplete, boolean automatic);建议还是改为 float 类型 做一些效果时 距离精度丢失了
- 下拉刷新刷新完成有时候头布局一直在转
- 崩!
- 有个问题
- 作者这个库不维护了吗
- 子控件大小设置为自适应,SwipeToLoadLayout,子控件内容发生变化,但控件大小无法改变 HOT 1
- 最新版的isRefreshing()接口在下拉刷新后一直显示为true,不能用于判断刷新状态。
- CoordinatorLayout嵌套SwipeToLoadLayout出现滑动冲突 HOT 3
- 在fragment生命周期onActivityCreated中发生null pointer exception
- swipe_target should chagne to android:tag
- CoordinatorLayout
- 当recyclerview添加了footerview之后又隐藏的话不能上拉加载更多
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swipetoloadlayout.