How can I achieve the same behavior of Android WRAP_CONTENT option using TLayout targeting iOS platform.

Comments

  1. AFAIK very hard...

    Android WRAP_CONTENT has very specific behavior. Reproducing that behavior is quite difficult with Delphi (and some other development tools) because they use different algorithms for sizing and positioning of controls.

    On native iOS the closest thing would be Intrinsic Content Size, but it is not quite the same as WRAP_CONTENT nor as simple to use as WRAP_CONTENT.

    As far as Delphi is concerned... well, maybe I am wrong but it does not have any mechanism built in that would resemble to WRAP_CONTENT. Main problem is that Android WRAP_CONTENT (and MATCH_PARENT) allow independent width and height settings for sizing of control that is also completely independent from control alignment.

    ReplyDelete

Post a Comment