Android Studio Designer预览版:如何包含设备框架? [英] android studio designer preview: how to include device frame?

查看:176
本文介绍了Android Studio Designer预览版:如何包含设备框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

相反的问题如何删除设备框架"似乎有很多答案,该问题指示用户单击预览中的设置"按钮以取消选中包括设备框架(如果可用)".但是对于我在Mac上使用2.2.2和更早版本2.2.1的我来说,带有该选项的按钮从未可用.开箱即用(dmg)Android Studio Designer始终仅显示视口而没有任何设备框架.

There seems to be tons of answers to the opposite question "how to remove device frame" which instructs user to click the "settings" button inside preview to uncheck "include device frame (if available)". But for me using 2.2.2 on a mac and 2.2.1 earlier, such a button with that option never was available. Out of the box (dmg) Android Studio Designer always only shows the viewport without any device frame.

对Designer设置的说明表示该选项仅在选择了包括设备框架"选项时才可用,但对我来说是鸡&鸡蛋问题.我使用的是默认的Nexus 6P AVD,它已经选择了启用设备框架".我看到的唯一设置按钮(位于预览窗格的外部,而不是内部)仅显示这些选项.

This explanation of the Designer settings suggests that option is only available if "include device frame" option is selected, but for me that is a chicken & egg issue. I'm using the default Nexus 6P AVD which already has "enable device frame" selected. The only settings button I see (which is outside the preview pane, not inside) only shows these options.

如何显示设备框架?谢谢

How can I make the device frame show? Thanks

推荐答案

在Android Studio 2.2及更高版本中,您可以启用和禁用设计器预览设备框架,如下所示

In Android Studio 2.2 and above you can enable and disable designer preview device frame as follows

1-单击设计器预览窗口

1- Click on designer preview window

2-按下键盘上的 F 按钮

2 - press F button from your keyboard

这将在您每次按下键盘上的 F 按钮时启用和禁用设计器预览设备框架.这对我有用.我希望它也对您有用.

this will enable and disable the designer preview device frame every time you press F button from your keyboard. this works for me. I hope its work for you as well.

它不适用于最新版本的 Android Studio 3.1

It does not work with latest version of Android Studio 3.1

这篇关于Android Studio Designer预览版:如何包含设备框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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