简体   繁体   English

android布局与布局冲突

[英]android layouts clashing with layouts

I am trying to supporting many different android devices and have run into a problem with my layouts, the problem is These layouts are showing only the 5.4 WVGA in the preview pane and the default layout showing wear square/round 我正在尝试支持许多不同的android设备,并且布局遇到问题,问题是这些布局在预览窗格中仅显示5.4 WVGA,默认布局显示磨损正方形/圆形

layout-large shows 5.4 WVGA 大幅面显示5.4 WVGA

layout-large-hdpi shows 5.4 WVGA layout-large-hdpi显示5.4 WVGA

layout-sw480dp shows 5.4 WVGA layout-sw480dp显示5.4 WVGA

default layout shows wear square/round 默认布局显示磨损方形/圆形

these are the only devices it will show in the preview for the folders mentioned! 这些是它将在提到的文件夹的预览中显示的唯一设备! other folders seem fine! 其他文件夹似乎很好! i have read the development docs and not sure where i am going wrong to support all screen sizes as thought i had it but was wrong,please see picture i have added to see my layouts. 我已经阅读了开发文档,但不确定我在哪里支持所有的屏幕尺寸,我以为是错的,但是请输入我添加的图片以查看布局。

在此处输入图片说明

I think you ask about preview in Android Studio. 我想您询问有关Android Studio中的预览的问题。

You could change virtual device to render in preview top bar: 您可以更改虚拟设备以在预览顶部栏中呈现:

在此处输入图片说明

UPDATE 1 更新1

Check if other device definition exists in Tools > Android > AVD manager 检查工具> Android> AVD管理器中是否存在其他设备定义 在此处输入图片说明

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

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