I imported a libgdx project into Android Studio to create the UI for my app. I tried to open the designer to easily add items to the UI, however the design tab from View > Tool Windows > Designer is grayed out. I assume it's because it's an imported project, would be great if anyone knew of a way to open the designer, thanks!
Scene2D comes with LibGdx which is usually used to create everything related to UI. I wouldn't recommend to use default Android UI with LibGdx game.
Here is some documentation an tutorials how to use Scene2D in your LibGdx project:
https://github.com/libgdx/libgdx/wiki/Scene2d
It's also recommended to use Ninepatch for your UI elements such as buttons so it can scale the buttons and other elements correctly. There is also a documentation and tutorial for that here:
https://github.com/libgdx/libgdx/wiki/Ninepatches
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With