This library will allow you to display RSS feeds "Magazine Style" on a nice custom view.
Requirements:
- B4A 3.8
- Internet connection
How to install:
- Copy the CustomRSSView.jar and CustomRSSView.xml to your additional libraries directory.
Usage:
If you want to parse local feeds, do this:
That's it!
Notes:
1- This library process only valid XML feeds and extracts the following fields: Title, Author, Description, Link, Image and PubDate.
2- If you want to parse XML feeds which might not be compliant or you want to extract other fields you will have to do it yourself and add the data to the view, there's a method to do that.
3-On some Android versions the images might not show. - Fixed.
4- Included a simple XML template to create a magazine style feed.
Check the attached sample for more details.
Screenshots:
Requirements:
- B4A 3.8
- Internet connection
How to install:
- Copy the CustomRSSView.jar and CustomRSSView.xml to your additional libraries directory.
Usage:
B4X:
Private rssView As CustomRSSView
'Initialize the CustomRSSView
rssView.Initialize(Activity, Me, "rssView", 50dip, 100%y - 50dip)
'Enter the URL of the RSS feed you want to parse
rssView.ParseRSS("http://www.b4x.com/android/forum/forums/-/index.rss")
If you want to parse local feeds, do this:
B4X:
rssView.ParseOfflineRSS(File.DirAssets, "MagazineStyleTemplate.xml")
That's it!
Notes:
1- This library process only valid XML feeds and extracts the following fields: Title, Author, Description, Link, Image and PubDate.
2- If you want to parse XML feeds which might not be compliant or you want to extract other fields you will have to do it yourself and add the data to the view, there's a method to do that.
3-
4- Included a simple XML template to create a magazine style feed.
Check the attached sample for more details.
Screenshots:
Attachments
Last edited: