Last active
December 18, 2015 10:59
-
-
Save quentin23soleil/5772016 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class ContactFragment extends Fragment{ | |
private ListView contactLV; | |
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, | |
Bundle savedInstanceState) { | |
View v = inflater.inflate(com.quentindommerc.flatme.R.layout.f_contact, container); | |
contactLV = (ListView)v.findViewById(R.id.contactLV); | |
ContactListViewAdapter adapter = new ContactListViewAdapter(getActivity()); | |
adapter.add(new ContactItem("@kentin_dommerc", R.drawable.ic_twitter, null)); | |
adapter.add(new ContactItem("myName", R.drawable.ic_google, null)); | |
adapter.add(new ContactItem("[email protected]", R.drawable.ic_email, null)); | |
adapter.add(new ContactItem("Call me", R.drawable.ic_phone, null)); | |
contactLV.setAdapter(adapter); | |
return v; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment