B4A Library CustomRSSView

Discussion in 'Additional libraries, classes and official updates' started by NJDude, Jun 24, 2014.

Similar threads

B4A Tutorial XML Parsing with the XmlSax library
B4A Question "Quote of the day" widget demo
B4A Question RSS feed question
B4A Question Combine 2 rss-feeds
B4A Question Rss Feed help
  1. Douglas Farias

    Douglas Farias Expert Licensed User

    yes is my forum problem thx, about your problem really your panel is not correct need - pnlaction.height
    but the lib have a problem too only go show full if you use 0%y and 100%Y
    if u add your panel at a scrool view u can see what i say xD

    u need to talk with nj to add option to setlayout *-* or add blank lines at the end of all parse
     
    asales likes this.
  2. asales

    asales Well-Known Member Licensed User

    Hi @NJDude . Can you fix it? Thanks in advance.
     
  3. JakeBullet70

    JakeBullet70 Well-Known Member Licensed User

    NICE!!! Thanks!!!
     
  4. asales

    asales Well-Known Member Licensed User

    Hi @NJDude. Can I help me to fix the layout with an actionbar? Thanks in advance.
     
  5. NJDude

    NJDude Expert Licensed User

    I will see what I can do, just hang on.
     
    asales and thedesolatesoul like this.
  6. NJDude

    NJDude Expert Licensed User

    The library has been updated, new version and sample attached to first post.
     
  7. jdiperla

    jdiperla Member Licensed User

    I didn't see this anywhere..But for rssView_ItemClicked, can we do more than just grab the URL? Can we grab things like GUID, Title, Author or even a custom field? If so, how? If not, is this planned? Thanks!

    ____

    EDIT: I was also curious if we can limit how many news articles are displayed and if there was a way to do a next and previous page if that were the case. The last request/question I had on this was if there are ways to sort how the RSS news feed is presented. If these features are unavailable, I would like to make a formal request for them. A donation will be coming your way within the next day or two. Thank you NJDude!
     
    Last edited: Dec 12, 2014
  8. NJDude

    NJDude Expert Licensed User

    The _ItemClicked event only passes the URL of the RSS article which is in the RSS feed itself, what you are asking is not possible. Regarding the number of articles displayed and pagination, you could handle that yourself, the RSSView just displays the feed as is, the features you're requesting are more towards a RSS reader which this library is not.
     
  9. merlin2049er

    merlin2049er Well-Known Member Licensed User

    Very nice!
     
  10. Douglas Farias

    Douglas Farias Expert Licensed User

    Hi.
    @NJDude have a chance to you add this options??
    10984809_918076431555907_644059905_n.jpg

    2 columns?
     
    koaunglay likes this.
  11. jhagerup

    jhagerup Member Licensed User

    Any plans for making an B4i version ?
     
  12. NJDude

    NJDude Expert Licensed User

    No plans whatsoever, sorry.
     
    Alisson and thedesolatesoul like this.
  13. ielliot

    ielliot Member Licensed User

    Hi

    Is there a way to hide the title bar

    Thanks
     
  14. Alisson

    Alisson Active Member Licensed User

    NJDude, hello!!!
    I think develop the customRSS to B4I?
    Your code is cool!!! :)
     
  15. DonManfred

    DonManfred Expert Licensed User

    See answer #52
     
    Alisson likes this.
  16. Alisson

    Alisson Active Member Licensed User

    Thanks DonManfred.
     
  17. Alisson

    Alisson Active Member Licensed User

    Hello guys.

    I am using the CustomRss library to read an online XML file.
    After I download the file using the code.

    Code:
    rssView.Initialize(Activity, Me, "rssView"44dip100%y - 0dip)
    rssView.ParseRSS(
    "http://www.site.com/rss.xml")
    link1 = 
    "http://www.site.com/rss.xml"
                   
    Dim job3 As HttpJob
                job3.Initialize(
    "rss", Me)
                   job3.Download(link1)
    When access a second view , the view of RSS appears.
    I'm using Activity.Finish correctly.



    My second code to download file:

    Code:
    Sub JobDone (Job As HttpJob)
       
    If Job.Success = True Then
           Job.Download(link1)
               
    Dim out As  OutputStream
              out = 
    File.OpenOutput(File.DirRootExternal,"folder/rss.xml",False)
               
    File.Copy2(Job.GetInputStream,out)
               out.Close
               Job.Release
       
    End If
       
    ProgressDialogHide
    End Sub
    When clicked to accsses the second view:

    Code:
    Sub btn_Click
        
    StartActivity("online2")
        
    Activity.Finish
    End Sub
    My module online2 and view three, online:

    Code:
    ...
    Activity.LoadLayout("online")
    ...

    If I access the online view , returns the view RSS reading rss.
    Please help me.
    Long time I'm trying to find the error and not against .

    Thanks very much!
     
    Last edited: May 31, 2016
  18. NJDude

    NJDude Expert Licensed User

    If you want to parse an online RSS you only need:
    Code:
    rssView.Initialize(Activity, Me, "rssView"44dip100%y - 0dip)
    rssView.ParseRSS(
    "http://www.site.com/rss.xml")
    You don't have to download it.
     
    koaunglay likes this.
  19. Alisson

    Alisson Active Member Licensed User

    NJDUde the library is used to an online RSS parse .
    But I need to download the XML file. If a person is offline it can read RSS.
    I have downloaded the problem. If you use the code to download the module and RSS view are reset when you access a new view.
    Example, accsses the view to read RSS, after access teh view contacts. The view RSS overrides the contacts.
    Sorry, can't post the project because it is for corporate / company.
    Please, look my log:

    upload_2016-6-1_9-38-29.png

    I need to solve this problem just to finish the project .

    NJDUde, thanks for the feedback.
     

    Attached Files:

  20. NJDude

    NJDude Expert Licensed User

    The information you posted is not telling me anything, however, for what you just mentioned, if you want to show an RSS even if offline then you should:

    1- Check for internet connection.
    2- If connected then download and parse.
    3- if not connected then parse the previously downloaded RSS.

    or

    1- Check for internet connection.
    2- If connected then download and parse.
    3- If not connected then display a message to connect to the internet or try later.

    I hope that helps.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice