0

I'm using Blank theme for styling my app. In this theme tabs do not stretching by width. How can I fix them?

enter image description here

ftp27
  • 885
  • 1
  • 12
  • 31

1 Answers1

0

Generally the simplest way is to open one of the native themes from the Codename One SVN and look there (specifically at the theme constants) to see what was done to accomplish that.

In this case just define tabsGridBool=true (checked) in the theme constants.

Shai Almog
  • 51,749
  • 5
  • 35
  • 65
  • This define broke my theme. Is there another way? – ftp27 Dec 02 '14 at 22:49
  • In what way did it break the theme? – Shai Almog Dec 03 '14 at 05:04
  • Did you try pressing the theme section again? How did you style the tabs beyond that? – Shai Almog Dec 03 '14 at 18:10
  • I managed to fix алл broken styles. But it was very unusual solution – ftp27 Dec 04 '14 at 12:42
  • I'm not quite sure I understand the problem so its possible you have an issue that might re-emerge later. I suggest deriving the native theme which is much simpler than starting from blank. – Shai Almog Dec 04 '14 at 18:11
  • Starting with blank theme I strive to bring style to a single view of application on most platforms. – ftp27 Dec 05 '14 at 08:46
  • I would still recommend deriving native. It includes many hidden things that would make things MUCH simpler. E.g. spacing from the status bar on the top of the screen in iOS 7+. – Shai Almog Dec 05 '14 at 18:27