【问题标题】:Is there an hot reload alternative for Xamarin.Android?Xamarin.Android 是否有热重载替代方案?
【发布时间】:2019-11-18 05:11:19
【问题描述】:

我知道在 Xamarin.Forms 中进行开发时,我可以使用一些用于热重载的工具,例如:

但是我找不到 Xamarin.Android 的等效替代品。是否有替代方案可用于在 Xamarin.Android 上进行热重载?

【问题讨论】:

    标签: android xamarin mobile xamarin.android android-emulator


    【解决方案1】:

    在 Xamarin Android 中有两种创建布局的方法:

    1. 使用 axml 布局 - 如果您在 Mac 上升级到最新的 Xamarin 和 Visual Studio,您会注意到布局的设计器视图使用 axml 代码实时更新。所以从技术上讲,它是实时重新加载。
    2. 在片段内部(CS 文件) - 为此,您可以使用 Continuous,正如您在使用中看到的那样 here。 Ryan Davis 已在 Twitter 上发布,他的回复速度非常快

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-12
      • 2014-01-29
      • 2020-10-07
      • 2012-09-02
      • 2016-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多