Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change the size of design xml screen size in Android studio?

so I am trying to use scroll view, and there is a lot of views that will be nested in my scroll view.

so I want to adjust it in the design tab xml not in the text tab xml using constraint layout, it will be great if I can set and see it in the designer xml tab.

in iOS development I can change the height of 'canvas' design screen like the image below, the screen 'canvas' on the left is higher than the screen canvas on the right side, so I can set the constraint and see all the views in the design before running the app.

enter image description here

so how to change the screen canvas size of xml in Android Studio? I have tried to search but I can't find it because maybe I don't know what it is called in Android studio

like image 546
Agung Laksana Avatar asked Sep 12 '25 22:09

Agung Laksana


1 Answers

There is a little icon at the bottom right of the design view that looks like two lines on horizontal that can help you create the design view how you like to whichever size.enter image description here

like image 168
David Innocent Avatar answered Sep 15 '25 14:09

David Innocent