Long click on ListFragment

Yes, the solution posted by tsync works for me. I too had ran into same problem and considered that this is not possible. I tried the above suggestion as follows: public class ProjectsFragment extends ListFragment { @Override public void onActivityCreated(Bundle savedState) { super.onActivityCreated(savedState); getListView().setOnItemLongClickListener(new OnItemLongClickListener() { @Override public boolean onItemLongClick(AdapterView<?> arg0, View arg1, int arg2, … Read more

Best place to addHeaderView in ListFragment

I don’t know if you have solved your problem but here is a solution that worked for me: Do not call ListFragment.setListAdapter() in your ListFragment.onCreate(). Make sure you have a field variable that can hold the header view, maybe like: View mheaderView; Then in your ListFragment.onCreateView(), inflate the header View and assign it to your … Read more