I have problem with Command with Codename One.
I want to make a UI like this: Command "Cancel" at top-left, Command "Account", "Images" at bottom bar
To do that, I added 4 command like this:
I added "empty" Command 217 to top-right, and next: Cancel, Account, Images (2 commands used icons)
It showed well on iPhone Simulator. But on Android simulator, it showed:
The "empty" command is showed, it made user confuse
But if I don't add "empty" command, the UI on iPhone will:
It doesn't like my design.
Everybody, can you help me any idea.
Thanks a lot!
You can use the SideMenuBar or the new Toolbar API which will be a part of the new update this week.
Related
Does anyone know how to do an interactive checkbox in LaTeX that can be crossed when it is clicked? Right now I can get it to work with with a checkbox that glows red when checked like this:
with
\usepackage{hyperref}
\begin{document}
\begin{Form}
\CheckBox[name=mycheckbox]{This is a check box:}
\end{Form}
\end{document}
but I'm not sure how you make it a cross instead of a glow when checked
In theory you can use the checkboxsymbol option to choose which symbol from pifont you want to use - but be aware that not all pdf viewer will display this correctly. The following screenshot was taken with adobe reader.
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\begin{Form}
\CheckBox[name=mycheckbox,checkboxsymbol=\ding{53}]{This is a check box:}
\end{Form}
\end{document}
Mac preview will show the default checkmark instead, other viewers might show nothing at all.
The native iOS VKB can have a toolbar, and this toolbar can have a blue "Done" text.
I would like to be able to translate the "Done" text into the local language of the app (the language bundle used by Codename One does not translate this text), also I would like to change the color of the "Done" text from blue to orange.
I don't know how to do these customizations with Codename One. Thank you for the directions.
The word "done" is used when localizing. Notice the lower case d. So adding "done" = "Localized String" to the resource bundle should work.
Can any one please tell me how i can add slider and moving form in codename one (with sample lines of code) and also want to know are these features supported by all types of devices?
Regards,
Megha
I think you mean how to animate forms changes
Form.setTransitionInAnimator(CommonTransitions.somthing)
Form.setTransitionOutAnimator(CommonTransitions.somthing)
Next, you should handle some "finger slide" event.
To add a slider you can use the following code
Slider jSlider = new Slider();
jSlider.setMaxValue(255);
jSlider.setMinValue(0);
jSlider.setProgress(50); // Set the starting value
jSlider.setEditable(true); // To it works as a slider instead of a progress bar
Now you have created a slider which you can add to your component like you would in Swing. You can type 'jSlider.' in eclipse to find out which other methods you can use, or you can go to the API: http://codenameone.googlecode.com/svn/trunk/CodenameOne/javadoc/com/codename1/ui/Slider.html
I think min/maxValue are selfexplenatory though :)
If you want to open a new form, simply create a new class extending form or do it in code like
Form form = new Form();
form.animate(); // To make it "slide in"
form.show();
Also noteworthy, the slider doesn't work with the lumia skin per default, though you can make it work. I actually asked this question on here as well:
Slider doesn't draw (CodeName One) with Windows phone skin
I try to migrate an app to iPhone5/iOS6.
I have already successfully migrated some apps with basic recommandation (-568h#2x).
BUT for this app, a black bar appears between the bottom toolbar and the middle of the screen (Cf. attached image).
Normally, the black bar should be filled with the tableview...
Of course, I have correctly set the tableview constraint in Interface Builder...
I fixed the pb... was not directly an iPhone5 issue but a bad usage of the new dimension from 1 component of my app... :(
I am dabbling fresh with Drupal 7 and so far having little success with getting the Menu to behave the way I want it to. My CSS and PHP basics are strong, but understanding Drupal's system is in itself a huge challenge and hence my doubts.
For those acquainted with the Bartik theme, the main menu defaults itself in the header.
I am trying to create a floating/persistent menu that encapsulates the entire width of the website. But I am not sure where I need to go in and make the required changes.
One option I have is to remove the main menu from the Bartik header and then introduce the main menu block in the 'featured' region. Here the menu is rendering itself horizontally instead of vertically the way i want it to be.
Essentially the question is, How do I alter the main menu in the Bartik theme? Where do I need to get in and make changes.OH, and I have sub-themed it, just to let you know.
Thanks much !
Parijat
I'm not sure I follow but it sounds like you need to create a new region to put the menu in. You add these in the themes .info file.
region[region_name] = Region name
Print the regions contents out in your themes page.tpl.php file.
Clear the cache and it will show up in the blocks page.
You can the style it how ever you want.