Put codenameon one Tab selectedIndex at the first position

49 views Asked by At

I am working on a program and then I need to have the selected index of my tab a the first position.

Look at this picture:

enter image description here

Now what I want is the tab "today" need to be displayed right at the beginning.

How can I do that? Can somebody help me?

1

There are 1 answers

4
Shai Almog On

You can remove the previous tabs from the Tabs control and then Today would be "first" but I'm guessing you just want Today to be at the left most position and not the first position.

That might be a bit challenging as there is no standard API for that. You might be able to manipulate the setScrollX value to match the value of the getX on Today but that is a pretty big hack...