Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
LayoutInflater myinflater = getLayoutInflater();
ViewGroup myHeader = (ViewGroup)myinflater.inflate(R.layout.android_listview_header, listView, false);
TextView tvHeader = (TextView)myHeader.findViewById(R.id.header_textview);
listView.addHeaderView(myHeader);
listView.setAdapter(adapter);
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.