Created
November 14, 2016 16:52
-
-
Save tassioauad/f0cd3485bc54c0a1a20320b58c4fb314 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
@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