Android Tutorial - Scaling for all device sizes programmatically

preview_player
Показать описание
How to scale elements for all android device sizes programmatically.

Check my latest project here:
Рекомендации по теме
Комментарии
Автор

Very cool method. How this method affects perfomance?

OCEH
Автор

How about the size of text for TextView? What would you deal with that?

khanhuynh.social
Автор

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?

phantomtheboxer
Автор

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

showbikshowmma
Автор

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

seanptaco
Автор

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?

syntaxrrr
Автор

please, how if use constraint layout and image view

karissaaulia
Автор

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

sabrinafeliz
join shbcf.ru