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 XE5 Firemonkey Android RSS ReaderI 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
DelphiDemoFiremonkeyIOSLinuxOSXWindows

Bring OpenAI Agents, Vision, Audio, And Realtime AI To Firemonkey

DelphiIDEWindows

Add AI Pair Programming, Refactoring, And Multi-LLM Workflows To RAD Studio

DelphiDemoFiremonkeyLibraryWindows

Bring OpenAI, Local LLMs, And AI Assistants To FMX Apps

DelphiFiremonkeyLibrary

DelphiGemini Brings Native Google Gemini AI Integration To Delphi

Sign up for our Newsletter and
stay informed
[mailpoet_form id="1"]

Leave a Reply