1
votes

I am trying to specify sidemenu width with the follow code:

    Hashtable<String, Integer> h = new Hashtable<>();
    h.put("sideMenuSizePortraitInt", 50);
    h.put("sideMenuSizeLandscapeInt", 30);
    UIManager.getInstance().setThemeProps(h);

But the result has some misplacement, please see the picture. Anybody knows how to fix this?

screenshot

1
The issue happens on iOS 10.1.1. It works fine on Android 6.0.1. - gospot

1 Answers

0
votes

That's a bad idea. This will break your theme entirely as it will replace all existing theming in the app. Theme constants are added in the designer tool by double clicking the res file, selecting the theme and then going to the 5th tab for the constants.

If you insist on doing this thru code I suggest using addThemeProps and not setThemeProps. Theme constants start with the @ symbol to signify that they are constants.