无法在 Android Studio 中看到完整的视图布局 [英] Unable to see completed view layout in Android Studio

查看:60
本文介绍了无法在 Android Studio 中看到完整的视图布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个垂直的 LinearLayout,它将显示在一个垂直的 ScrollView 中.我无法在 Android Studio 中找到查看 ScrollView 底部下方的 LinearLayout 部分的方法.有什么办法可以看到完整的布局而不是将其限制在渲染器提供的视口中?

I am creating a vertical LinearLayout that will be displayed in a vertical ScrollView. I can't find a way in Android Studio to see the portion of the LinearLayout that is below the bottom of the ScrollView. Is there any way to see the full layout rather than constraining it to the viewport provided by the renderer?

推荐答案

就像 Drew 所说的,创建用户定义的设备定义是唯一对我有用的解决方案.下面我向您展示要遵循的步骤:

Like Drew said, creating a user defined device definition has been the only solution which worked for me. Below i show you the steps to follow:

步骤 1)在预览窗格中,打开虚拟设备选择下拉菜单并选择添加设备定义..

Step 1) Within the preview-pane, open the Virtual Device Selection drop-down and select Add Device Definition..

步骤 2)在您的虚拟设备对话框中,点击创建虚拟设备按钮.

Step 2) Within the Your Virtual Devices dialog click the Create Virtual Device button.

步骤 3)在选择硬件对话框中,点击新硬件配置文件按钮.

Step 3) Within the Select Hardware dialog click the New Hardware Profile button.

第 4 步)在配置硬件配置文件对话框中指定(例如)720 x 4000 像素的分辨率和12英寸的屏幕尺寸.同时设置屏幕尺寸会导致 xhdpi密度(感谢 Mete).

Step 4) Within the Configure Hardware Profile dialog specify (f.e.) a Resolution of 720 x 4000 px and a Screensize of 12 inch. Also setting the Screensize results in a density of xhdpi (thanks to Mete).

步骤 5) 关闭所有对话框并重新启动 Android Studio.步骤 6) 打开虚拟设备选择下拉菜单.可以在通用手机和平板电脑下找到新的用户定义的硬件配置文件.

Step 5) Close all dialogs and restart Android Studio. Step 6) Open the Virtual Device Selection drop-down. The new user defined hardware profile can be found under Generic Phones and Tablets.

这篇关于无法在 Android Studio 中看到完整的视图布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆