how to work with different dimension in android studio?

Asked

Viewed 409 times

3

I would like to adapt my app created for each mobile model. As I some it gets smaller text on the screen and in others larger, I would like to create a method where it adapts to the cell phone model that person this.. that it always stay the ideal size for that cell phone

I know it has to do with ldpi, mdpi, xxhdpi, etc. But I don’t know how to generate this file dimens.xml.

1 answer

1

Hello, from a researcher on screen densities. https://developer.android.com/guide/practices/screens_support.html?hl=pt-br this link is from the documentation of the android itself and addresses this subject.

Just a short summary: The android works with a dp unit other than an HTLM or CSS that we use px or %. Each screen has its specific density. Remember to save the images correctly that you will not have big problems.

I hope I’ve helped

Browser other questions tagged

You are not signed in. Login or sign up in order to post.