I 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
1 Comment