B4A Library CustomRSSView

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:

Code: Copy
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:
Code: Copy
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- 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:


zAaTzPXl.png



BlxFkdVl.jpg



mCcbp2ll.jpg
 

Attachments

Last edited:
rssView.PublishedPrompt("xxxxxxx")

Error description: Property: _publishedprompt is writeonly.

What is the correct method for changing this parameter... Thanks
 
Hello... is there any way to attach the RSSview to a panel. For example I want to be able to move the position of the RSSView.
 
Suggestion:

It would useful to those using the custom Rssview for news to have a header and footer on the feed which can hold a logo with issue information.

Elliot
 
Hello !
can this lib be modified to display html in place of image like
Code: Copy
rssView.AddToRSSView (Title  As  String ,Author As String, View As WebView , PubDate As String, Link As String)
i want ti display some html and rich string in place of image.
regards
sanjib
You can leave the image blank and add the HTML text to the Description field
 
How I can set the "TitleTextColor" and "TitleBackgroungColor"?

Thanks.
The intellisense shows the syntax:
Code: Copy
Sub TitleTextColor(Red As Int, Green As Int, Blue As Int)
For example, if you want the text to be RED then you do:
Code: Copy
TitleTextColor(255, 0, 0)
TitleBackgroundColor is similar, but it has an additional parameter for Alpha.
 
The intellisense shows the syntax:
Code: Copy
Sub TitleTextColor(Red As Int, Green As Int, Blue As Int)
For example, if you want the text to be RED then you do:
Code: Copy
TitleTextColor(255, 0, 0)
TitleBackgroundColor is similar, but it has an additional parameter for Alpha.

Thanks NJDude!
 
I try to add the rssView in a panel (+ ActionBar panel) but the bottom of rssView is cut off.
Please see the sample and image in attached.
How I can fix it?
I could not find where the problem is.
Thanks in advance.
 

Attachments

@NJDude
hi man, i m using your lib, works very fine, but i have one problem
how can i open spolier?
when i click in one spolier no hapans nothing *-*
dont work *-*

its possible add click at spolier and open this spolier when is clicked?
 
@NJDude
hi man, i m using your lib, works very fine, but i have one problem
how can i open spolier?
when i click in one spolier no hapans nothing *-*
dont work *-*

its possible add click at spolier and open this spolier when is clicked?

Hi Douglas.
Did you see my question above?
You succeeded to use the CustomRSS in a panel without cut off the bottom?
What is "spolier"?
 
hi man, i m using at activity and is 100% y and x

spolier = SPOILER* is this
ssssssssssss
 
See my sample in attached.
Spoiler works, but I can't solved the problem with add CustomRSS to panel and cut off the bottom.

your layout is not correct
here is, panel - pnlaction.height
 

Attachments

Back
Top