Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › Default size of simplerow with detailText

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19627

    Nicola

    Hi,

    which is the “constant” that has the value of the simplerow height with text and detailtext?

    N.

    #19628

    Alex
    Felgo Team

    Hi Nicola,

    the default size for a SimpleRow with only a text is dp(42) on iOS and dp(48) on Android. With detailText and image the size is dynamic, depending on the content. We already discuss setting up a doc page with those constants, as they can be quite handy to have some values to base custom layouts on.

    Cheers,
    Alex

    #19630

    Nicola

    With detailTex i mean with only one word in the details

    #19645

    Alex
    Felgo Team

    Hi Nicola,

    this is hard to say, as it is really dynamic depending on the content. On iOS it would roughly equal to dp(59), but not pixel perfect. On desktop the size can be different for iOS theme selected, as the font will be different, and thus the actual height of the text items. What’s your exact use case? If you make a custom row that should look native on mobile, you can aim for around dp(60) in height.

    Cheers,
    Alex

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.