[codenameone-discussions] Re: MaterialScreensUIKit doesn't show hamburger (sidemenu)

2017-10-12 Thread Shai Almog
Changing themes dynamically can cause issues with some theme constant 
behaviors.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/596f872d-2b2c-4d7f-80e5-115f8f9ad513%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Long list of EDT errors when capturing an image with a set size - possible instability on iOS

2017-10-12 Thread Shai Almog
OK, please file an issue or submit a pull request. Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/e6a1c4bf-8cad-4a14-a41b-11bac8241fa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Build Hint android.googleAdUnitId

2017-10-12 Thread Shai Almog
If you are using the test account you should see ads immediately as far as 
I know. 

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ed2e0336-72de-4ef4-8c3f-fdc52030defc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] MaterialScreensUIKit doesn't show hamburger (sidemenu)

2017-10-12 Thread howudodat1
using MaterialScreensUIKit and the following code:
 public void init(Object context) {
try {
  theme = UIManager.initNamedTheme("/theme", "material");
} catch (Exception e) {
}

// Enable Toolbar on all Forms by default
Toolbar.setGlobalToolbar(true);

}

public void start() {
  if(current != null){
current.show();
return;
}
Form hi = new Form("Toolbar", new BoxLayout(BoxLayout.Y_AXIS));
hi.getToolbar().addCommandToLeftBar("Native", null, (e) -> 
setTheme("Native"));
hi.getToolbar().addCommandToRightBar("Material", null, (e) -> 
setTheme("material"));
 hi.getToolbar().addCommandToSideMenu("Test", null, (e) -> 
setTheme("test"));

hi.show();
}

public void setTheme(String theme) {
Resources res = null;
try {
res = Resources.openLayered("/theme");
} catch (IOException e) {
Log.p(e.toString());
}
if (res != null) {
UIManager.getInstance().setThemeProps(res.getTheme(theme));
Display.getInstance().getCurrent().refreshTheme();
}

}



shows no side menu.  




and yes, I have the themes in my .res file




However starting with "Native" (I renamed Theme1 from when the project was 
created) and then switch to the material theme it shows the hamburger icon, 
but then of course there are a ton of other artifacts.

Peter

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/c366d8b4-656f-4e7a-a686-69e95f3c7807%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Long list of EDT errors when capturing an image with a set size - possible instability on iOS

2017-10-12 Thread nickkoirala
Copying the code from Capture.java and ensuring it runs on the EDT seems to 
make a significant difference in stability on iOS.

On Monday, October 9, 2017 at 5:34:38 PM UTC+13, Shai Almog wrote:
>
> OK, I see the problem. I'll fix the log so it doesn't make noise.
>
> This isn't a problem in native code as the scale method is implemented in 
> the native OS ports and doesn't use this approach.
>
> If this is indeed an EDT issue you can verify that by copying the code 
> from Capture.java and changing it to do the scaling on the EDT. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/334e4062-f47e-47b1-8250-15d4455bd943%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: Build Hint android.googleAdUnitId

2017-10-12 Thread Miguel Roca
OK, and how long does the ads take to appear in the banner?, because right 
now it is black

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/55823f21-dd14-4899-8658-5ccc6abe748e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.