Android : Libx GDX scrollable with overlay

on Tuesday, October 7, 2014


I quite new to libGDX and trying to Implement the layout shown in the picture below using the table layout


The container a Table [Green] is composed of a Table Header and of a ScrollPane body. the body is also a table with various rows.


I am trying to have the body part that is scrolling under the Header and the beginning the body1 should be visible with a proper padding from top.


The code so far:



ScrollPane body = new ScrollPane(bodyTable);
header.add(headerBar).expandX().fillX();
container.add(header).top().expandX().fillX().row();
container.add(body).fill().expand();


It can scroll properly but there is no overlap between header body. Wonder is this is possible using tables ?Is there any example / suggestion that can point me in the right direction ?


enter image description here:


0 comments:

Post a Comment