@@ -0,0 +1,1119 @@
+package com.data;%0A%0Aimport java.util.List;%0A%0Aimport com.models.RssItems;%0Aimport com.rss.R;%0A%0Aimport android.content.Context;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport android.widget.ArrayAdapter;%0Aimport android.widget.ImageView;%0Aimport android.widget.TextView;%0A%0Apublic class NewsAdapter extends ArrayAdapter%3CRssItems%3E%7B%0A%0A%09private Context context;%0A%09private List%3CRssItems%3E items;%0A%09private int ivcon;%0A%09%0A%09%0A%09public NewsAdapter(Context context, int ivcon,%0A%09%09%09List%3CRssItems%3E items) %7B%0A%09%09super(context, ivcon, items);%0A%09%09this.context=context;%0A%09%09this.ivcon=ivcon;%0A%09%09this.items=items;%0A%09%7D%0A%09@Override%0A%09public View getView(int position, View convertView, ViewGroup parent) %7B%0A%09%09%0A%09%09LayoutInflater inflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);%0A%09%09View rowview=inflater.inflate(R.layout.news, parent, false);%0A%09%09%0A%09%09ImageView img=(ImageView)rowview.findViewById(R.id.ivcon);%0A%09%09TextView txt=(TextView)rowview.findViewById(R.id.txtnews);%0A%09%09img.setBackgroundResource(ivcon);%0A%09%09txt.setText(items.get(position).getTitle());%0A%09%09%09%0A%09%09return rowview;%0A%09%7D%0A%09%0A%0A%7D%0A

Create NewsAdapter.java