different colors on ComboBox - codenameone

I was testing a ComboBox in my device and I noticed gray stripes that where not there before. The stripes don't show on the simulator.
I changed the UIID for the ComboBox from white to yellow to check if it was the background color, but it is still there.
What am I missing?

It seems like you are running on the nexus skin on the simulator which uses an older native theme as a basis, this is probably the cause of the difference between your device and the Simulator, change your simulator to HTCOne or xoom and you will most likely see these stripes on the simulator as well.
Try to modify the "ComboBoxItem" uiid to be transparent and with an empty border

Related

Textbox and Combo box not showing background color from theme

I have a project in the play store created with version 3.2 at end of October. Today I rebuilt the project to add new features. When I deployed it to Android I noticed the following 4 issues.
1. The push notification icon is a solid white square. It was my icon in the past.
2. The initial screen form is incorrect as it goes into the android soft buttons at the bottom of the page.
3. The theme for my combo box is not showing. Just see thru to background.
4. The text field background is also just using the background instead of the white.
I tried building in latest, 3.2 and 3.1 with no differences. I reverted all code to the release in October with no help.
I submitted the IOS build and everything is fine.
The simulator shows everything is fine.
I tried many times to figure out why this is happening and have not been able to.
I need 10 reputation points to post more than 2 links so, I'm only showing 2 screen shots. Let me know if you want the others.
Please see the following:
This image shows the edit and dropdown issue
This is the current play store version of the edit and dropdown
Any ideas on how can I fix these issues? For the text field I use my own style (it does get the boarder but not the background). The notification icon, I don't see how anything I can do would affect this.
Thank you
Sam
-- Edited --
I did manage to get these working again.
I was setting the background color using the theme background tab and setting a gradient with upper and lower the same color. I changed this to NONE, then in the color tab set the background color.
Notification needed a new icon as specified by Chen. In my case the app icon is basically a square and doesn't transfer well to a notification icon.
The last was the nexus 9 initial screen painting into the bottom navigation control. This is still happening and is easily reproduced by making a new hello world codename one app with no changes.
Are you using the android.asyncPaint=false build hint?
I understand some issues occurred with it although I doubt you would see them if you are using the versioned build.
Setting the background color using the theme background tab and setting a gradient with upper and lower the same color didn't work.
Change this to NONE, then in the color tab set the background color.

Microsoft Surface & WPF

I have WPF application work with 1024x768 screen resolution, now I want to run this application on Microsoft Surface with wide resolution, I had make new windows with resolution 1366x768, but unfortunately I can't make it work fine on Surface, I tested it on my laptop, it's work 100%, but I don't understand why it would't work in the same way on Surface.
If there is anyone that has experience with Surface can you please help?
Update
When I run the WPF windows with resolution 1920x1080 work full screen on my laptop, but the problem is when run application on Surface with the same resolution don't fit the full screen, see this screenshot to more clarity:
Maybe your surface and laptop have different DPI settings. See here how to handle that problem.
From the information provided it may be that your WPF window layout doesn't sufficiently take into account differences in Display text and item sizing on different devices.
On both your Surface Pro and your laptop:
Select "Screen Resolution" from the Desktop context menu.
Select "Make text and other items larger or smaller" from the Screen
Resolution window.
Check the position of the "Change the size of all items" slider.
By default the Surface Pro is set to Larger. A new Windows 8 install will be set to Smaller.
In WPF you should not be setting a constant window size, instead you should:
Make the window's content react to the window size by using auto sizes and grids instead of constant sizes and panels
You can use WindowState="Maximized" to make the window full screen
You can prevent your window from being reduced too much with minwidth and minheight.

Windows 8 Live Tile Icon Background Color

I am developing a WPF application. My customers want to use it on Windows 8 and it's working correctly. But they are complaining me about the background color of the app's icon on Start Screen.
So can you please show me how to change it in Visual Studio or some tricks? I found some tuts on Google to customize it but using tools and I want to make it happen in Installer or Property of project...
Thanks
Change app icon color from the App Manifest file.
Heres the app manifest portion where you can change in the image
In My case the bacground color is #464646 you can change it to any thing you want and update to the users :)
Because of this reason it is always advised by Microsoft to use Transparent Png logo and a uniform background color for app tile.
That background colot of app's icon on Windows 8 is the default behavior of Windows 8. It will display the background color of the app's icon using the "dominant" color of the app's icon. If your icon has dominant color of brown, it will display brown background.
This is also the similar default behavior when hovering mouse on running application's icons on Windows 7's taskbar. To enhance the look, try change the application icon to use neutral colors or light colors instead of dark colors.
Or you can change the icon of your app to use single color's icon (such as white) on transparent background to reflect the flat theme icons of Windows Store apps in Windows 8, or use full rectangle icons as those games in Windows 8.
Example:
There is a similar question and answer: UWP Tile Background Color Not Working by Kasper, but is not specific to Windows 8, for anyone looking for a UWP solution.
As the answer by Anobik states, set the colour in the app manifest page. However, as it was found by Kasper, the value must be set in HEX for it to work as expected.

BackGrond gets distored while building application in code name one

I am building a application in codename one which has a log-in age.
I have a created a UI as the requirements but when i build the application from codename one's server for android then i see that a streamed background image gets distorted and convert in to lines.
The background image has a gradient from 3 dimension to center top.
I checked it in codename one simulator its looks fantastic but in android emulator background image gets distorted.
Please check attached image for it. i have added two image 1st is of codename one's emulator and 2nd one is android emulator.
Please let me know that i do.
You have a background gradient, the devices have a limited number of colors so the background will be distorted to some degree as the colors are adapted to the lower color count on the device.
This is assuming you didn't use a mutable image or a round rect border (not image border), in those two cases the number of colors might be lower because of drawing to an image surface that might be 16bit.

Xcode 4.5 iOS SDK 6.0 Beta 4 compiled app gives me thin white lines in background

you all know the blue background with the thin white lines in the iOS "Settings" app. I set a grey background color for all of the views in my app which works as expected. Now when I build the exactly same code with the Xcode 4.5 (4G144l) "Preview"-Version with the iOS 6 beta 4 SDK an let it run on a device with iOS 6 beta 4 or the iPhone 6.0 Simulator my background grey is replaced by this "blue with thin white lines"-style and I have no clue why. No one seems to have this problem. Anyone?
thanx
This problem occurs for all tables that use the UITableViewStyleGrouped style and try to set a background color. A change was made in iOS 6 that causes the background view to be set for these tables, which overrides the background color property. The solution is to clear the background view in the UITableView.
table.backgroundView = nil;
I've had a similar problem, I'm using "[[UITableView appearance] setBackgroundColor:" to change the background images of all the tableviews in the app.
Fixed it by changing the background color of the TableView in the Storyboard from Default to Clear color.

Resources