Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetDelphiDemoFiremonkey

Display An RSS Feed With A TListView In Delphi XE5 Firemonkey For Android

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE5 Firemonkey Android RSS Reader | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSI found this RSS viewer application built with Delphi XE5 Firemonkey for Android over on a Turkish forum for Delphi. I like the formatting they used for displaying the data from the RSS feed. It uses the Indy HTTP component to download the images and formats everything in a TListView control. It looks like it just manually moves through the RSS file and parses the data so there is no XML component to deal with. It will also send the link from the RSS feed item to Android for viewing in the device browser. Here is some sample source from the project which shows the creation of the TListViewItem:
Procedure ObjectOlustur( AItem:TListViewItem; LItem: TListItemText; strRefKod, strText:String; iOffsetX, iOffsetY, iWidth,iHeight, iFontSize:Integer; iFontColor: LongInt );
begin
LItem := TListItemText.Create(AItem);
LItem.Name := strRefKod;
LItem.Font.Size := iFontSize;
LItem.TextColor := iFontColor;
LItem.Align := TListItemAlign.Leading; // En Sol
LItem.VertAlign := TListItemAlign.Leading; // En Ãœst
LItem.PlaceOffset.X := iOffsetX;
LItem.PlaceOffset.Y := iOffsetY;
LItem.TextAlign := TTextAlign.taLeading;
LItem.Trimming := TTextTrimming.ttCharacter;
LItem.IsDetailText := True;
LItem.Width := iWidth;
LItem.Height := iHeight;
LItem.Text := strText;
end;

The forum post is in Turkish so I have provided the link through Google Translate. The full project with source is at the end of the forum post. This project looks like it should also run on IOS without any problems though you will have to edit the close button since you don’t close apps on IOS. I’ve mirrored the source below in case the original goes down.

Check out the full forum post about the RSS reader and download the source.

Source Mirror: Turkish RSS Feed Reader In Delphi XE5 Firemonkey

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts
DelphiDemoFiremonkeyLinuxOSXShowcaseWindows

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging

DelphiFiremonkeyShowcaseUtilityWindows

Unleashing Creativity With Song Writer AI: A Deep Dive

DelphiFiremonkeyShowcaseWindows

How To Build Stable Diffusion Text To Image Prompts

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

Sign up for our Newsletter and
stay informed

Leave a Reply