What is the Android equivalent of Java – JFrame?

I just wrote a java program for the game. I want to know how to run the same game on Android using Android studio

I noticed that Android does not support JFrame. What is Android equivalent to JFrame?

resolvent:

In Android, if you want to create a "screen", what you usually do is subclass activity. If you want to create a UI widget, you can use view

But before you subclass any of them, you should know that although they have some similarities with JFrame, they are very different, and you need to know a lot of Android specific things before you start using them

For an example of how to make a simple 2D game in Android, take a look at this

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>