简体   繁体   中英

How to use android classes inside libgdx project?

I just started to learn libgdx engine and I'm a little confused. Until now I've coded all my apps in a project which included android library, but this project is using the "normal" java library (but it can be run on PC and I've started it on android too).

Actually what I'm asking is how to use android classes inside this libgdx project. For instance, I would like to use dialog class or show Toast when game is finished.

您可以通过使用Facade设计模式来实现这一点,如libgdx文档中所述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM