You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I inflated this XML in a fragment called Home.java, which, in turn, I attached to a SherlockActivity (from the open-source library ActionBarSherlock) called MainActivity.java:
Home.java
public class Home extends Fragment {
private PullToRefreshListView l;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
// Layout
View v = inflater.inflate(R.layout.home, container, false);
l = (PullToRefreshListView) v.findViewById(R.id.listview);
//Return
return v;
}
}
I get the following error message when using your library:
How I got the error
I put a PullToRefreshListView in a layout XML called home.xml:
I inflated this XML in a fragment called Home.java, which, in turn, I attached to a SherlockActivity (from the open-source library ActionBarSherlock) called MainActivity.java:
Home.java
MainActivity.java
Other potentially relevant info
I cloned your GitHub, imported the project into Android, then added it as a library to my own project. I made no modifications to your code.
The text was updated successfully, but these errors were encountered: