I want to comment, as I am very experienced; in fact, I have never developed 2D games (let alone 3D), I do not know libGDX or even XUI2D
["Then why do not you shut up?" - I do not know

; or rather, it would be too long to explain. Also, I like to have so much
source code available that maybe I can study and use and, sooner or later, I will do it]
but in the xui2d example i have 7 CLASSES !! but why ??
Many classes -
source code - means more power on you hand! You know that one of the programming tips is to split / subdivide the "problem" to be solved in many small parts ("divide et impera").
Also, again without knowing libGDX, I suppose you use many of its objects, which are obviously existing classes, which you do not see and of which you do not have the source code. Maybe you use a command like: SomeLibGDXObject.Xyz not knowing that behind that simple command there is a series of cascaded classes. When I use an EditText, I could think it is a single class, and it is but:
all this "behind the scenes", but there are a lot of classes to create a simple EditText.
(And this one?

)
Finally (although this is the main reason for the creation of XUI) you can create apps for Android and iOS with minimal changes using it, while when you use libGDX and iSpritekit your sources will certainly be much more different from each other.
Now (maybe) I can go to watch the source of XUI2D "Hello World".
["Now? You should have done it before writing these stupid things"

]