简体   繁体   English

Android Studio 刷新布局无需重建项目

[英]Android Studio Refresh Layout without Rebuilding Project

I cannot find how to refresh my project without rebuilding it in Android Studio.如果不在 Android Studio 中重建项目,我找不到如何刷新项目。 I have seen this popup near the logcat in the past and used it, it was wonderful for layout updates.我过去在 logcat 附近看到过这个弹出窗口并使用过它,它非常适合布局更新。

Is this refreshing just a layout change not available in Android Studio?这种刷新只是 Android Studio 中不可用的布局更改吗?

According to: Android Studio: How to 'Refresh' after adding file?根据: Android Studio:添加文件后如何“刷新”?

There is no refresh option for do that on AndroidStudioAndroidStudio上没有刷新选项

There is only an option for Make project in Build -> Build Project .Build -> Build Project中只有一个Make project选项。

But, i think this option will do the refresh option:但是,我认为此选项将执行刷新选项:

File->Synchronize . File->Synchronize Or equivalently, Ctrl + Alt + Y or the little circle with arrows menu button.或者等效地, Ctrl + Alt + Y或带箭头的小圆圈菜单按钮。

Update: In the new Android Studio, This feature is available.更新:在新的 Android Studio 中,此功能可用。 Thanks to jason.感谢杰森。

Because the answer isn't stated anywhere in this thread even though it's marked as accepted:因为这个线程中的任何地方都没有说明答案,即使它被标记为已接受:

Click on your preview and press R单击您的预览并按R

Source: How to refresh preview on Android Studio 2.2?来源: How to refresh preview on Android Studio 2.2?

获取此功能的最新Android Studio

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

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