查看滚动型的全部内容在Eclipse的图形布局全部内容、布局、图形、Eclipse

由网友(风吹蛋凉毛飞扬)分享简介:我使用的Eclipse 3.6.2赫利俄斯Android的发展,每当我设计的图形化布局模式(不是XML布局)的布局,我看不到滚动型的全部内容在图形化的布局。I'm using Eclipse Helios 3.6.2 for Android development and whenever I design a la...

我使用的Eclipse 3.6.2赫利俄斯Android的发展,每当我设计的图形化布局模式(不是XML布局)的布局,我看不到滚动型的全部内容在图形化的布局。

I'm using Eclipse Helios 3.6.2 for Android development and whenever I design a layout in the graphical layout mode (not the XML layout), I can't see the entire content of a ScrollView in the graphical layout.

具体而言,当我使用的是滚动型和滚动型的高度超过该内容视图区域(即手机屏幕在图形布局模式中可见)的高度,我无法看到的项目,我有在屏幕的底部。

Specifically, when I'm using a ScrollView and the height of the ScrollView exceeds the height of the content view area (i.e., the phone screen visible in the graphical layout mode), I am not able to see the items that I have at the bottom of the screen.

在Eclipse中赫利俄斯3.6.1有一个名为扩展,以适应的选项;每当我用一下就可以了,手机屏幕的尺寸增加至涵盖所有,我已经添加的元素。我如何做到同样的事情在3.6.2?

In Eclipse Helios 3.6.1 there was an option called "expand to fit"; whenever I used to click on it, the phone screen increased in size to encompass all the elements that I had added. How do i achieve the same thing in 3.6.2?

推荐答案

有没有办法来滚动的Andr​​oid布局编辑器中的内容。你可以做什么,不过,是创建一个新的设备模拟一个巨大的高度,所以你可以看到什么是隐藏在滚动型。

There's no way to scroll the content inside the Android Layout Editor. What you can do, though, is create a new device simulation with a huge height, so you can see what is hidden in the ScrollView.

要做到这一点,进入下面的编辑配置下拉菜单中昂选择自定义...(左上Android的布局编辑器的右上角)。选择您的preferred第一个(我的是3.7in WVGA),然后点击复制。复制的分辨率将出现在该列表的底部的定制基

To do so, go to the dropdown menu below "Editing config" ang choose "Custom..." (top-left corner of the Android Layout Editor). Select one of your preferred resolutions (mine is 3.7in WVGA) and hit "Copy". The copied resolution will appear in the "Custom" group in the bottom of the list.

选择您的新配置,然后点击编辑...。在那里,你可以选择屏幕尺寸属性,并更改值。我创建了一个分辨率2000x480(纵向)。这样一来,我可以看到滚动型里面的全部内容。

Choose your new configuration and hit "Edit...". In there, you can select the "Screen Dimension" property and change the value. I created a resolution 2000x480 (portrait). This way, I can see the whole content inside the ScrollView.

希望它帮助。

阅读全文

相关推荐

最新文章