简体   繁体   English

当我的内容不在屏幕上时,如何查看整个布局?

[英]How to view my whole layout when my content goes off the screen?

So, I know this may be a very simple question but, I have my layout in a scroll view. 因此,我知道这可能是一个非常简单的问题,但是我的布局处于滚动视图中。 Everything works fine, but when I go to the Graphical layout tab in my xml file, it shows everything that would fit on the screen and not the rest of my content. 一切正常,但是当我转到xml文件中的“图形布局”选项卡时,它将显示适合屏幕显示的所有内容,而不显示其余内容。 How do I scroll up and down or view my whole layout in the graphical tab without having to constantly update the app on my phone and seeing whether everything is laid out the way I want it? 如何在图形选项卡中上下滚动或查看我的整个布局,而不必不断更新手机上的应用程序,并查看是否按照我想要的方式布置了所有内容?

如果您只想 “查看”内容,则可以在ScrollView的子级中临时添加android:layout_marginTop="-200dp" ,只记得在运行应用程序之前再次将其删除:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM