Created
September 17, 2010 16:41
-
-
Save sudar/584498 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
setListAdapter(new ArrayAdapter<string>(this, R.layout.list_item, strings) { | |
@Override | |
public View getView(int position, View convertView, ViewGroup parent) { | |
View row; | |
if (null == convertView) { | |
row = mInflater.inflate(R.layout.list_item, null); | |
} else { | |
row = convertView; | |
} | |
TextView tv = (TextView) row.findViewById(android.R.id.text1); | |
tv.setText(getItem(position)); | |
return row; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment