using java.awt classes in android

六眼飞鱼酱① 提交于 2021-02-05 11:09:07

问题


i'm currently trying to use the library LLaTeXMath in an android app. The problem is, many functions want Arguments or have return values from the java.awt Package. So far, I've encountered Color, Insets, Image. For example the Method TeXFormula.createBufferedImage() requires 2 Colorinstances and returns an Image. How can i provide the arguments and use the return value?


回答1:


It's not possible. The only class from awt you can use in android is java.awt.font




回答2:


ok forget it, i found out, there is an android version of jlatexmath. I just have to figure out, how to use it, since it doesn't come as a jar file and is not a gradle project, but that doesn't belong here



来源:https://stackoverflow.com/questions/37744504/using-java-awt-classes-in-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!