After a few days of use, here are our first impressions on the Google Pixel 9 Pro Fold with its stunning hardware and great battery life.

  • davidgro@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 months ago

    Sounds like a clear failure to have a reasonable API. I’d think apps shouldn’t have to guess based on aspect ratio, they should be told in some way which layout to use.

    • huginn@feddit.it
      link
      fedilink
      English
      arrow-up
      15
      ·
      2 months ago

      Hi! Professional android dev here who has done some work on migrating an app to foldable:

      Apps don’t guess. If they’re using XML they make specific layouts for a given width of screen.

      If they’re using compose it’s even easier: the entire UI library is built for adaptive layouts. The main issue is a lot of apps are not in compose UI (or not entirely) - and material 3 has excellent components but it’s even less widely used.

      Tldr: tech debt

      A potential cause of the wonkiness is explicitly setting resizeableActivity="false" in the app manifest.

    • skuzz@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      3
      ·
      2 months ago

      Hold on now, let us not start using logic when referring to computer programming here. It’s all magic and bumbling around on a keyboard.