• Asher SimondsAsher Simonds, almost 6 years ago (edited almost 6 years ago )

    9-patches can be tricky to understand if you're just starting out in Android, so it's great to see someone describing with less developer-speak.

    One thing he does is strange though - typically one doesn't append the density bucket label to the drawable itself but instead to the folders each size of that drawable sit in.

    3 points
    • Sebastien Gabriel, almost 6 years ago

      Thanks for your feedback. You are not the first one to make this remark about appending the DPI. I added a note under the image involved. To sum it up:

      This is something we used internally to make the designers' life easier when handling a single source file with hundreds of assets in them. Current design programs make it hard (or impossible) to define an export path on a per asset basis. Having the asset named the same way creates duplicates error upon export. That's why we are doing that.

      When the assets are handed over for implementation, they split it in the correct asset bucket folder and remove the appended DPIs with a script.

      The Engineers have been nice enough to go with this method, which made asset managing on my side way easier.

      3 points
      • Asher SimondsAsher Simonds, over 5 years ago

        That's a pretty good idea actually.

        In my work I typically just start with folders for each density and export to them for each size. It doesn't take very long but the total time I spend dealing with this probably adds up.

        Might talk with out team and see if we can put something like this together :)

        0 points
  • Brian ZelipBrian Zelip, almost 6 years ago

    This is a useful resource that also helped me understand the OP's question about resolution in the which grid do you use thread a couple days ago.

    0 points
  • Patrick LoonstraPatrick Loonstra, almost 6 years ago

    Great, I print this article and read this from top to bottom. It is about time. Next, is a great piece about how colour profiles really work and how to master them.

    0 points