Android Open Source - BungalowAndroidApp R S S Adapter

From Project

Back to project page BungalowAndroidApp.


The source code is released under:

MIT License

If you think the Android project BungalowAndroidApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package se.aleros.bungalow;
//from  w  ww.j av a  2  s  .c om
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;

public class RSSAdapter extends ArrayAdapter<RSSItem> {

  public RSSAdapter(Context context) {
    super(context, R.layout.rss_item);
    // TODO Auto-generated constructor stub

  public View getView(int position, View convertView, ViewGroup parent) {
    // TODO Auto-generated method stub
    View v = convertView;
    if (v == null) {
      LayoutInflater inflater = (LayoutInflater)getContext().getSystemService(Service.LAYOUT_INFLATER_SERVICE);
      v = inflater.inflate(R.layout.rss_item, null);
    TextView tvTitle = (TextView)v.findViewById(;
    TextView tvSummary = (TextView)v.findViewById(;
    RSSItem item = this.getItem(position);
    return v;


Java Source Code List