예제 #1
0
    public View getView(int position, View convertView, ViewGroup parent) {
      View row = convertView;

      if (row == null) {
        LayoutInflater inflater = getLayoutInflater();

        row = inflater.inflate(android.R.layout.simple_list_item_1, parent, false);
      }

      RSSItem item = (RSSItem) getItem(position);

      ((TextView) row).setText(item.getTitle());

      return (row);
    }
예제 #2
0
 public void onItemSelected(RSSItem item) {
   startActivity(new Intent(Intent.ACTION_VIEW, item.getLink()));
 }