Skip to content

Instantly share code, notes, and snippets.

@tassioauad
Created November 14, 2016 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tassioauad/f0cd3485bc54c0a1a20320b58c4fb314 to your computer and use it in GitHub Desktop.
Save tassioauad/f0cd3485bc54c0a1a20320b58c4fb314 to your computer and use it in GitHub Desktop.
@Override
public View getView(int position, View convertView, ViewGroup parent) {
if(convertView == null) {
LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = inflater.inflate(R.layout.child, parent);
}
TextView textView = (TextView) convertView.findViewById(R.id.textView);
Object object = getItem(position);
convertView.setText(object.toString());
return convertView;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment