Android Tutorial - Scaling for all device sizes programmatically

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии • 17

  • @OCEH6
    @OCEH6 3 года назад +1

    Very cool method. How this method affects perfomance?

  • @showbikshowmma3520
    @showbikshowmma3520 Год назад

    brother in figma there is a tool call scale tool so when u click K button from ur keyboard u will sey it, and what it does is that it will resize ur prototype for different mobile devices lets say. lie zoom in out effect for different devices, so it automatically change font size, any component sizes at once without using autolayout. but in react native how can we use the scale function for different devices at once .. plz ans this

  • @phantomtheboxer
    @phantomtheboxer 3 года назад +3

    Gr8 tutorial thank you very much :)
    two questions tho:
    1) you didnt use your dDensity, is there any need for it?
    2) how do i know which design height and width do i put in? let's say in my XML im using pixel 5 1080 X 1920 420 dpi, is it just 1920 for height and 1080 for width? because i tried it and it didnt fit the XML preview, do i just need to try different numbers untill they fit?

    • @howdyworld
      @howdyworld 2 года назад

      did you find the answer of the question 2 ? if you did can you please tell me what you did?

    • @phantomtheboxer
      @phantomtheboxer 2 года назад

      @@howdyworld nope unfortunately 😔

  • @karissaaulia9043
    @karissaaulia9043 3 года назад +1

    please, how if use constraint layout and image view

  • @danilkyrgyzbaev1438
    @danilkyrgyzbaev1438 2 года назад

    hey thank you do you haму github ?

  • @seanptaco
    @seanptaco 3 года назад

    I'm going to have to try this out. Thankyou

  • @syntax3rr0r8
    @syntax3rr0r8 3 года назад

    Hey vladislav, i just started a new job as an android developer in a firm but the problem is i'm the only android developer... so i should figure out everything myself. Designer gived to me a figma design like yours. So i'm just confused, if i want to apply exactly same design at all screen sizes, what should i use. Your method or h-l-m-x-xx-xxx-dpi method. I tried the different dpi methods b ut it's very hard to making exactly same desing at different devices. Can you give me a tip about that?

    • @MrCroZer
      @MrCroZer  3 года назад +1

      There is no right or wrong way, in my experience the way I am showing is what works for me the best, it's eaasier to implemment, to change and to guarantee that it will be same on all devices. The only issue with it is that you don't see the design in the "Design view" you have to run the app to actually see the design. That's the only downside to it.

  • @abrishphoenix
    @abrishphoenix 3 года назад +1

    it set it with pixels not dp

  • @sabrinafeliz4822
    @sabrinafeliz4822 3 года назад

    Hello sir i need to Know how to résolve the same problem but the view (table. Button) are create programmatically please help me

    • @MrCroZer
      @MrCroZer  3 года назад

      There is no difference if it's programatically or not, you just have to set the calculated width/height the same way like in the video

    • @sabrinafeliz4822
      @sabrinafeliz4822 3 года назад

      @@MrCroZer okay thank you

  • @thiagosousa1338
    @thiagosousa1338 3 года назад

    nice!!

  • @СтойкаАтанасова-к2ч

    Може ли видео на български