@@ -0,0 +1,1058 @@
+package com.data;%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%0Aimport com.rss.R;%0A%0Apublic class CategoryAdapter extends ArrayAdapter%3CString%3E %7B%0A%0A%09private Context context;%0A%09private String%5B%5D category;%0A%09private int ivcon;%0A%09%0A%09public CategoryAdapter(Context context, int ivcon,%0A%09%09%09String%5B%5D paper) %7B%0A%09%09super(context, ivcon, paper);%0A%09%09this.context=context;%0A%09%09this.category=paper;%0A%09%09this.ivcon=ivcon;%0A%09%7D%0A%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.category, parent, false);%0A%09%09%0A%09%09ImageView img=(ImageView)rowview.findViewById(R.id.ivcon);%0A%09%09TextView txt=(TextView)rowview.findViewById(R.id.namecate);%0A%09%09img.setBackgroundResource(ivcon);%0A%09%09txt.setText(category%5Bposition%5D);%0A%09%09%09%0A%09%09return rowview;%0A%09%7D%0A%0A%7D%0A

Create CategoryAdapter.java