How To Embed Link Tag In Textview Using Rss In A Android
I had made a basic rss reader that reads the feed and display it in listview, then i further tried to improve it by adding tabs and writing a custom adapter,now the next step i wan
Solution 1:
You should create a wrapper object with the title and the url. then fill the list view with those objects, and get the url to fire the browser activity.
Something like:
classRssObect {
string title;
string url;
//contructors//getters and setters
}
Then on the adapter set the list something like List<RssObect> list = getRssFeed(...)
....
Then on item click listener just use the current item selected (list.get(selected).getUrl());
Post a Comment for "How To Embed Link Tag In Textview Using Rss In A Android"