如何在 android studio 中实时预览 SLIDING LAYOUT?
How to get live preview of SLIDING LAYOUT in android studio?
我正在使用 AndroidSlidingUpPanel 库,想知道如何在 android 工作室中实时预览 "SLIDING LAYOUT" 内容?
我找不到任何简单的解决方案,只能在新文件中创建它,然后将代码复制并粘贴到主文件中。
Android Studio 无法向您显示视图元素的实时预览。因为它只是简单地渲染 xml 布局中的已知元素。您必须使用 emulator to look at "live" work of elements. You can create it from menu preference "AVD (Android Virtual Device), or use other emulators, like Genymotion。此外,您可以 运行 在连接到您的 PC 的真实设备上使用您的应用程序。
我正在使用 AndroidSlidingUpPanel 库,想知道如何在 android 工作室中实时预览 "SLIDING LAYOUT" 内容?
我找不到任何简单的解决方案,只能在新文件中创建它,然后将代码复制并粘贴到主文件中。
Android Studio 无法向您显示视图元素的实时预览。因为它只是简单地渲染 xml 布局中的已知元素。您必须使用 emulator to look at "live" work of elements. You can create it from menu preference "AVD (Android Virtual Device), or use other emulators, like Genymotion。此外,您可以 运行 在连接到您的 PC 的真实设备上使用您的应用程序。