How do you get ActionBar from SocialBoo theme to show up in your GUI? - codenameone

Ok. Starting over with this. I see that the SocialBoo theme has something similar in what I want to achieve. If I find that I can work and improve. I Added a new socialboo theme and created blank GUI. Assumed it would be a Commandbehavior but that didnt do the trick, so did adding tabs. Seems like those components are not for that specific bar... However did notice another issue.
How do I get the social actionbar as displayed in the socialboo theme? (Screen shot). Assuming those images etc are part of the default theme, right.
Also, If I create a TouchCommand = bar, title or native. It displays fine in Gingerbread but not ICS. DO you know why is that? (screen shot)
Thanks, in advance.

Those images aren't a part of the theme, they are a part of the specific demo. If you add a Tabs component to the center of the border layout UI you will get thee tabs where the "icon" property will allow you to customize the unselected icon and you can customize the selected icon as well. You can see the full source/resource file of the social boo demo in the docs and demos zip in the download section.
Generally customizing commands is a bit complex because of platform specific constraints, when running on an Actual Android 4 device we use the native ActionBar by default to provide the experience Android users are used to. This is hard for us to simulate so you will only see this properly in the device build. I suggest not relying on commands, it seems that what you are trying to achieve is easily doable with tabs and its possible that's why you had difficulties in your other question.

Related

How to hide fancybox navigation arrows on mobile

I've spent most of the day on this and got nowhere. On a mobile handset the gallery is displayed with the nav arrows superimposed on the image. These are not necessary since swipe is enabled and spoil the look of the image.
I need to hide the arrows for mobile only, is there a recommended way to do this? It seems like a common thing one might want to do, but I can't find anything current on the web.
I've tried some js code to alter the options for the library to no avail, and can't figure out how to do it with a media query to modify the css.
There is an option arrows that you can use to toggle navigation arrows. You could set it by yourself for mobile devices or you can use handy mobile option, like this:
$('[data-fancybox="images"]').fancybox({
mobile : {
arrows: false
}
});

responsive theme disable virb

If someone can help me with this I will be eternally grateful. Recently I have started an on-line magazine using virb.com to host the site. I have done some basic css alterations to their theme but run into a problem when the theme automatically re-sizes itself for mobiles or even if the browser window is shrunken down. The content goes all whack, probably because of my css alterations. Is there a way that I can disable the responsive theme from resizing or fix my css so it doesn't discombobulate or even just have different page display for mobile users that says something like 'not available for mobile'??
Thanks,
Patrick

Making a basic navigation for iOS with two buttons on both sides of the title

I am working on codenameone, and trying to make the first UI.
A basic UI with a title and two buttons on two sides of the "title" to go to two different pages.
I was trying to do that with "Form" component but then it only gives one button by default, which is just taking me to the previous screen.
Not sure how to do this, any link or tip is a nice help.
thanks
Use addCommand(new Command("X")) or in the GUI builder just click the commands property in the form. It will automatically use the menu for Android.
The back button is added automatically for iOS apps for back navigation which you will probably need. You can disable it in the state machine code and have room for two commands in the title.

wpf checkbox doesn't display over citrix

So we have a WPF app deployed on a citrix server, it all works fine except that the checkbox won't show that it has been clicked (it's actually working just fine). So weird - just that one little thing, I have buttons which I have customized the pooh out of using visual states and those are all fine. A google search of "wpf checkbox citrix" turns up nothing useful. Anyone seen this or have an idea where to look?
Thanks
There might be some incompability between the display driver, Citrix, and the CheckBox default style for the active Windows theme. I would write a simple CheckBox template (I can include one if you need) and see if that works, and if it does, use that instead of the default theme style.

How to make a navigation in Expression Blend 4?

So I created a layout in Expression Blend 4 for my Silverlight application. Now I need to create a simple navigation to navigate between pages. I have a canvas control in the layout (MainPage.xaml) and I would like the navigation buttons to just change the content of the canvas.
So if a user clicks on a navigation button for Page1.xaml, the Page1's content will be loaded into the canvas.
Could anybody give me an example how to do it? I tried using the MenuItem control but I could not understand how to use it. Now I have just used buttons but I don't know how to make a navigation from them.
I would love to be wrong about this but Im pretty sure, Blend 2,3,4 (the ones I have used)are just like windows form development your controls are not active until you actually build and run the application.
Sorry
Edit
To answer your comment the menuItem is a simple control that has been predefined like a button or link. The main idea with blend is to give developers and designers the ability to customize the look and feel of control layout in a similar way html uses CSS and javascript.
Try using "Hyperlink Buttons" for your menu and display the content in a "Frame" control.

Resources