问题
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 Color
instances 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