codenameone

CN.setScreenSaverEnabled(false); and MediaPlayer

放肆的年华 提交于 2020-08-26 06:55:45
问题 Oddly when I play a video using MediaPlayer in a non-native way, after a few seconds (depending on the mobile phone settings) the power saving mode starts, which turns the screen off. This is an unwanted behavior, because when playing a video the screen must never turn off or dim. I don't understand if this is a Codename One bug or a feature, however it happens both on Android and iOS. Apparently I fixed the problem using CN.setScreenSaverEnabled(false); . My problem, however, is that it

Rating bar like android in codename one

走远了吗. 提交于 2020-07-23 11:50:54
问题 I want to add Add Raring Bar in a Form of codename one like android.. But am afraid there is no GUI for to create in codename one.. Is there any other option for to create it.. 回答1: I think someone contributed a component like that on the discussion forum once, but I can't find the link. It should be relatively simple to create using something like this (didn't test this code though): Container starSelect = new Container(new BoxLayout(BoxLayout.X_AXIS)); for(int iter = 0 ; iter < 5 ; iter++)

Rating bar like android in codename one

£可爱£侵袭症+ 提交于 2020-07-23 11:49:16
问题 I want to add Add Raring Bar in a Form of codename one like android.. But am afraid there is no GUI for to create in codename one.. Is there any other option for to create it.. 回答1: I think someone contributed a component like that on the discussion forum once, but I can't find the link. It should be relatively simple to create using something like this (didn't test this code though): Container starSelect = new Container(new BoxLayout(BoxLayout.X_AXIS)); for(int iter = 0 ; iter < 5 ; iter++)

Rating bar like android in codename one

梦想与她 提交于 2020-07-23 11:47:27
问题 I want to add Add Raring Bar in a Form of codename one like android.. But am afraid there is no GUI for to create in codename one.. Is there any other option for to create it.. 回答1: I think someone contributed a component like that on the discussion forum once, but I can't find the link. It should be relatively simple to create using something like this (didn't test this code though): Container starSelect = new Container(new BoxLayout(BoxLayout.X_AXIS)); for(int iter = 0 ; iter < 5 ; iter++)

Hide and show the Toolbar according to the scrolling

社会主义新天地 提交于 2020-07-05 11:25:15
问题 This question is referring to Codename One only. I need to make the Toolbar of a Codename One Form moving as shown in this video: https://www.informatica-libera.net/videoLavoro/hideShowToolbarOnScrolling.mp4 As you can see, the scroll up causes the Toolbar to gradually disappear, while the scroll down causes the Toolbar to gradually reappear. A solution like https://stackoverflow.com/a/55856590 is not applicable because I don't need to change the UIID of the Toolbar, but I need to move the