Closed marlonnardi closed 1 year ago
@KngStr Is there a possibility to implement this?
You can do this by custom adapter
{ TCustomStringsListAdapter }
function TCustomStringsListAdapter.GetView(const Index: Integer;
ConvertView: TViewBase; Parent: TViewGroup): TViewBase;
begin
Result := inherited GetView(Index, ConvertView, Parent);
if (ConvertView = nil) or (not (ConvertView is TListTextItem)) then begin
TListTextItem(Result).Gravity := TLayoutGravity.Center;
TListTextItem(Result).TextSettings.Font.Size := 30;
end;
end;
Test unit :FMXUI\demos\standard\uFrameDialog.pas. ButtonView20Click
Perfect, it worked, thanks again.
How do I access the FontSize property when adding Items to the List?