可以更改使用 Gradle (Android Studio) 导入的库的代码吗?
Able to alter code of libraries imported with Gradle (Android Studio)?
是否可以在 Android Studio
中更改通过 Gradle
导入的库的代码?我认为这是不可能的,因为库是在运行时添加的?
在Java
中是否有等同于extensions in Swift
的东西? Swift
中的扩展基本上是一种向现有 class 添加更多 functions/methods 的方法。不直接修改原始源代码。
提前致谢!
Is it possible to alter the code of a library imported through Gradle in Android Studio?
根据您的 Swift 扩展参考,不是您定义的那样。
An extension in Swift is basically a way to add more functions/methods to an existing class. Without directly altering the original source code.
Java没有这个,抱歉。
是否可以在 Android Studio
中更改通过 Gradle
导入的库的代码?我认为这是不可能的,因为库是在运行时添加的?
在Java
中是否有等同于extensions in Swift
的东西? Swift
中的扩展基本上是一种向现有 class 添加更多 functions/methods 的方法。不直接修改原始源代码。
提前致谢!
Is it possible to alter the code of a library imported through Gradle in Android Studio?
根据您的 Swift 扩展参考,不是您定义的那样。
An extension in Swift is basically a way to add more functions/methods to an existing class. Without directly altering the original source code.
Java没有这个,抱歉。