Styling the side menu (iOS)

38 views
Skip to first unread message

P5music

unread,
Feb 10, 2021, 10:54:35 AM2/10/21
to CodenameOne Discussions

I am trying to change the appearance of the side menu. I run my CodenameOne app on Android device and the side menu is not as it should appear according to my app style.

I found this video:

https://www.youtube.com/watch?v=99DAeP9LG6c

(How Do I - Style the Side Menu)

I watched until 1:25 then I cannot open the sidemenu in preview.

I do not have any side menu component explicitly in the project.

I do not understand at all.

However I just want that on iOS it appears in a suitable and acceptable manner for iOS users. So I do not need all that styling that is done in the above mentioned video for each component.

I just need that the background is white (or the iOS default), the font is larger, the spacing between lines is larger.

So if some xml exists that configures it, please let me know, so I import it in my project, assign it to the side menu, as some xml lines in some file or whatever.

Thanks in advance.

Shai Almog

unread,
Feb 10, 2021, 9:56:30 PM2/10/21
to CodenameOne Discussions
Are you using CSS or the designer to style your application?
If you're using the designer then just define the styles as explained in the video and it will change the colors/font as you expect.
If you're using CSS just use the same names of styles and apply them. You can run in the simulator and make the changes live to see them applied to the side menu.

P5music

unread,
Feb 11, 2021, 5:24:12 AM2/11/21
to CodenameOne Discussions
I am not styling my app at all, I just set the native theme, and I am satisfied with its appearance on Android devices, I hope it is similarly acceptable and pleasant on iOS,
but
the side menu is not appearing good on Android. Maybe it appears good on iOS devices, I do not know because I have not checked it yet.
So I need either some xml, css whatever to put somewhere, or an assurance about the iOS appearance of the side menu (I will check very soon however).
Regards.

Shai Almog

unread,
Feb 12, 2021, 12:13:36 AM2/12/21
to CodenameOne Discussions
For the side menu you will need to style your app a little bit. It won't look good in any platform. We plan to improve it but as I mentioned in another thread of yours. Our task list is deep.
Reply all
Reply to author
Forward
0 new messages