android - 如何编辑 Android 库 .class 文件

标签 android edit android-library

我正在尝试编辑 this图书馆。 DragDropGrid.class 具体来说,但我不能。代码的许可证是这样的:

 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

所以我应该可以编辑它。问题是当我尝试时什么也没有发生。这个奇怪的问题有解决方案吗?我试图通过 google 寻找解决方案,但得到的结果告诉我不要编辑 R 文件。

最佳答案

您应该编辑 DragDropGrid.java,而不是 *.class - Egor 评论。

关于android - 如何编辑 Android 库 .class 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18080903/

相关文章:

C- 编辑/更新文件(不一定在最后)。 fopen(路径, "a+")不起作用

Android 库项目未使用正确的调试变体资源

android - UIAutomator 测试的安全异常

android - 需要 Android 的文件保存对话框

iphone - 在 iPhone 中直接以编辑模式直接打开 ABPersonViewController

android - 如何删除通过 gradle 添加的重复库?

android - 如何免费使用 Bintray jcenter?

android - Eclipse 没有 java 文档来显示有关类和方法的信息。如何附加那些? +安卓

android - 在 Android 上的 phonegap 应用程序中关闭 exit-on-suspend

java - 使用 vector 编辑 JTable