Created
July 14, 2018 10:45
-
-
Save alfannas/62613f87bd99b677c0253608b5b862a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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