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

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

问题描述

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

如何显示设备框架?谢谢

解决方案

在 Android Studio 2.2 及以上版本中,您可以按如下方式启用和禁用设计器预览设备框架

1- 点击设计器预览窗口

2 - 按键盘上的 F 按钮

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

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

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.

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

解决方案

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

1- Click on designer preview window

2 - press F button from your keyboard

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.

It does not work with latest version of Android Studio 3.1

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

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