-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用xutils3的injectView注入获取控件,on a null object reference #49
Comments
you must use specified ids <?xml version="1.0" encoding="utf-8"?>
<com.aspsine.swipetoloadlayout.SwipeToLoadLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/swipeToLoadLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.aspsine.swipetoloadlayoutdemo.MainActivity">
<com.aspsine.swipetoloadlayoutdemo.RefreshHeaderView
android:id="@id/swipe_refresh_header"
android:layout_width="match_parent"
android:gravity="center"
android:layout_height="100dp" />
<ListView
android:id="@id/swipe_target"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.aspsine.swipetoloadlayoutdemo.LoadMoreFooterView
android:id="@id/swipe_load_more_footer"
android:layout_width="match_parent"
android:gravity="center"
android:layout_height="100dp" />
</com.aspsine.swipetoloadlayout.SwipeToLoadLayout>
also see #45 |
It's maybe a bug of XUtils. I'm not sure. |
@Aspsine |
@Aspsine Please highlight these view ids in Quick-Setup. refresh header view |
@BruceZZ Added. |
@Aspsine Thanks for your nice library 😄 |
获取SwipeToLoadLayout的内部及自身控件,比如com.aspsine.swipetoloadlayout.SwipeToLoadLayout,RecyclerView等都会null
The text was updated successfully, but these errors were encountered: