How to add padding to a container without affecting the container above it in libgdx?

Let's say I have two continuums c1, c2 with c1 above c2. Now I want to press c2 on 30 so that I do

c2.padtop (30)

However, this affects the orientation of c1. Is there any way in libgdx to fill a single container without affecting the filling of the container above?

+4
source share
1 answer

Only if your alignment CENTER will complement, will affect the placement of widgets. If alignment is not your problem. You can try using .space () instead of .pad ()

+1
source

All Articles