How to convert a java swing application to work on android

后端 未结 5 509
鱼传尺愫
鱼传尺愫 2020-12-04 20:23

So I built a program in Java using swing for the interface and i didn\'t realize how difficult it would be to convert it to be used as an android application. Is there any w

5条回答
  •  情歌与酒
    2020-12-04 20:42

    What I would do is that I would build the UI in XML, then I give the items an ID and reference to it in Java, and then I'll trigger everything by button clicks so what one button does in your swing layout does the same on android. You can't copy/paste it.

提交回复
热议问题