# What is the difference between expand(), grow() and fill() in libGDX?

I am currently working with scene2d tables. But I am tired of using hit and trial to make the layout I wanted. Can anyone explain the meanings of expand, fill and grow? I need the behaviour like wrap_content and match_parent as in android.

Some code I tried is:

    Table contentTable = scoreDialog.getContentTable();
contentTable.debugAll();

Table topTable = new Table();
topTable.debugAll();
topTable.top();

topTable.row();

contentTable.row();
contentTable.row();

contentTable.row();

starsTable = new Table();
starsTable.setHeight(50);

Expand: expands the cell that the actor is currently placed in to occupy the largest possible area without changing other cells size. For example if the cell is 50 x 50 and there is 50px of empty space to the sides of the cell it will resize to 100 x 50. Only changes the size of the cell, not the actor.
Fill: makes the actor occupy the entire space of the cell. For example if the actor is 50 x 50 and the cell is 100 x 100 the actor will be resized to 100 x 100. Only changes the size of the actor not the cell.