Back to project page school-rss.
The source code is released under:
Apache License
If you think the Android project school-rss listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.elegion.rssreader; // ww w . j a va 2s. co m import android.content.Context; import android.widget.ArrayAdapter; import java.util.Collection; /** * @author artyom on 10/09/14. */ public class NewsAdapter extends ArrayAdapter<NewsItem> { public NewsAdapter(Context context) { super(context, R.layout.li_news_item, R.id.text); } @Override public void addAll(Collection<? extends NewsItem> collection) { setNotifyOnChange(false); for (NewsItem item : collection) { add(item); } setNotifyOnChange(true); notifyDataSetChanged(); } }