The width and height of the parent screen when designing the screen with Android studio layout editor.

Asked 2 years ago, Updated 2 years ago, 36 views

When designing a screen with Android studio layout editor, what dp is the width and height of the screen?Where is that defined?
In the sample program, it says fill, and it's kind of hazy.

android

2022-09-30 15:38

1 Answers

When designing a screen with Android studio layout editor, what dp is the width and height of the screen?Where is it defined?

May I ask you how many DPs should be used to design the screen on Android as well as Android Studio?

There is no particular decision here.Depending on the target device of the application you are developing, you will be able to accommodate any screen size.The device may be a vertical screen, a horizontal screen, or a square screen, and even a vertical screen may have a horizontal or square aspect ratio when dividing the screen.Therefore, it is generally not desirable to have a fixed layout even with DP designation.(Except for business applications for specific devices)

See Android developer documentation.


2022-09-30 15:38

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.