13.01.2011 13:54, Mattias Svala пишет:

TextView view = (TextView)inflater.inflate(R.layout.notes_row, null);

Basically, what is the correct way to inflate views in a ListAdapter?

Yes.

You also should support recycling views to get better performance and memory usage:

if (convertView == null) {
v = vi.inflate(R.layout.notes_row, null);
} else {
v = convertView;
}

--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to