Jun 24, 2014 Replies: 75 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: Attachments CustomRSSView_Sample.zip CustomRSSView_Sample.zip 12.3 KB · Views: 1,014 CustomRSSView_Lib_1.4.zip CustomRSSView_Lib_1.4.zip 14.3 KB · Views: 1,004 Last edited: Dec 5, 2014 Click to expand...
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:
I ielliot Member Licensed User Longtime User Aug 2, 2014 #21 rssView.PublishedPrompt("xxxxxxx") Error description: Property: _publishedprompt is writeonly. What is the correct method for changing this parameter... Thanks
rssView.PublishedPrompt("xxxxxxx") Error description: Property: _publishedprompt is writeonly. What is the correct method for changing this parameter... Thanks
NJDude Expert Licensed User Longtime User Aug 2, 2014 #22 ielliot said: rssView.PublishedPrompt("xxxxxxx") Error description: Property: _publishedprompt is writeonly. What is the correct method for changing this parameter... Thanks Click to expand... rssView.PublishedPrompt = "xxxxxxx"
ielliot said: rssView.PublishedPrompt("xxxxxxx") Error description: Property: _publishedprompt is writeonly. What is the correct method for changing this parameter... Thanks Click to expand... rssView.PublishedPrompt = "xxxxxxx"
asales Expert Licensed User Longtime User Aug 10, 2014 #24 Hi NJDude. Is possible to change the text size of the field Title?
NJDude Expert Licensed User Longtime User Aug 10, 2014 #25 I haven't added that feature the reason is because being able to do that might allow to create ridiculous results, like someone adding a font size of 72 or size 1
I haven't added that feature the reason is because being able to do that might allow to create ridiculous results, like someone adding a font size of 72 or size 1
I ielliot Member Licensed User Longtime User Aug 28, 2014 #26 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.
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.
I ielliot Member Licensed User Longtime User Aug 28, 2014 #27 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
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
sanjibnanda Active Member Licensed User Longtime User Sep 18, 2014 #28 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
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
NJDude Expert Licensed User Longtime User Sep 18, 2014 #29 sanjibnanda said: 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 Click to expand... You can leave the image blank and add the HTML text to the Description field
sanjibnanda said: 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 Click to expand... You can leave the image blank and add the HTML text to the Description field
asales Expert Licensed User Longtime User Sep 29, 2014 #30 How I can set the "TitleTextColor" and "TitleBackgroungColor"? Thanks.
NJDude Expert Licensed User Longtime User Sep 29, 2014 #31 AS2 said: How I can set the "TitleTextColor" and "TitleBackgroungColor"? Thanks. Click to expand... 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.
AS2 said: How I can set the "TitleTextColor" and "TitleBackgroungColor"? Thanks. Click to expand... 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.
asales Expert Licensed User Longtime User Sep 30, 2014 #32 NJDude said: 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. Click to expand... Thanks NJDude!
NJDude said: 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. Click to expand... Thanks NJDude!
asales Expert Licensed User Longtime User Sep 30, 2014 #33 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 RSSView_ActionBar.zip RSSView_ActionBar.zip 12.5 KB · Views: 491 SC20140929-222030.png 39.7 KB · Views: 631
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.
Douglas Farias Expert Licensed User Longtime User Sep 30, 2014 #34 @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?
asales Expert Licensed User Longtime User Oct 1, 2014 #35 Douglas Farias said: @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? Click to expand... 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"?
Douglas Farias said: @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? Click to expand... 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"?
Douglas Farias Expert Licensed User Longtime User Oct 1, 2014 #36 hi man, i m using at activity and is 100% y and x spolier = SPOILER* is this Spoiler: asddasdasdasdasdasd ssssssssssss
hi man, i m using at activity and is 100% y and x spolier = SPOILER* is this Spoiler: asddasdasdasdasdasd ssssssssssss
asales Expert Licensed User Longtime User Oct 1, 2014 #37 Douglas Farias said: hi man, i m using at activity and is 100% y and x Click to expand... In activity is ok, but in panel not. spolier = SPOILER* is this Spoiler: asddasdasdasdasdasd ssssssssssss Click to expand... Ok. I can understand now.
Douglas Farias said: hi man, i m using at activity and is 100% y and x Click to expand... In activity is ok, but in panel not. spolier = SPOILER* is this Spoiler: asddasdasdasdasdasd ssssssssssss Click to expand... Ok. I can understand now.
asales Expert Licensed User Longtime User Oct 1, 2014 #38 spolier = SPOILER* is this Spoiler: asddasdasdasdasdasd ssssssssssss Click to expand... See my sample in attached. Spoiler works, but I can't solved the problem with add CustomRSS to panel and cut off the bottom. Attachments RSSView_SpoilerYES_ActionBarNO.zip RSSView_SpoilerYES_ActionBarNO.zip 12.8 KB · Views: 462
spolier = SPOILER* is this Spoiler: asddasdasdasdasdasd ssssssssssss Click to expand... See my sample in attached. Spoiler works, but I can't solved the problem with add CustomRSS to panel and cut off the bottom.
Douglas Farias Expert Licensed User Longtime User Oct 1, 2014 #39 See my sample in attached. Spoiler works, but I can't solved the problem with add CustomRSS to panel and cut off the bottom. Click to expand... your layout is not correct here is, panel - pnlaction.height Attachments RSSView_Sample.zip RSSView_Sample.zip 377.8 KB · Views: 498
See my sample in attached. Spoiler works, but I can't solved the problem with add CustomRSS to panel and cut off the bottom. Click to expand... your layout is not correct here is, panel - pnlaction.height
asales Expert Licensed User Longtime User Oct 1, 2014 #40 Douglas Farias said: your layout is not correct here is, panel - pnlaction.height Click to expand... I tried but did not work. The bottom is cut off. Did you see the spoiler? Solved your question?
Douglas Farias said: your layout is not correct here is, panel - pnlaction.height Click to expand... I tried but did not work. The bottom is cut off. Did you see the spoiler? Solved your question?