Background transparency turn to black on Android - codenameone

I'm building a form as a menu, because the demand is a menu that come from the top. So I've build my form with a BoxLayout Y, set the backgroud transparency of to 0 with the theme and added a container with my menuItems inside. A Cover-Uncover transition to add some menu feeling and the form is complete.
On Ipad (cropped):
The result is pretty good, but I have a big problem on Android : the transparency work during the transitions, but when the in transition is over, all the transparency turn to black. I've tried on Android 4.4.2 (old archos tablet) and on Android 8.0 (brand new P20 lite smartphone).
On Android while transition is active :
On Android after transition
Is it a way to show the previous form on Android ? Or even a sidemenu swipable from the top ?

Forms can't have transparency. There is nothing behind them. If there was we'd need to keep in memory every form you ever showed because you could reference forms in code and set them to transparent on the fly. Form is a special case top level component when you show it, it's the end of the line.
You can accomplish this with a Dialog or an InteractionDialog both of which work similarly. In fact the side menu bar code is just an InteractionDialog.

Related

IncludeNativeBool Codename One

I'm not sure if this is a bug but it only happens with the constant includeNativeBool true after switching themes, once I navigate through menus it shows up, I highlighted it with red as you can see in the picture below. I want to deactivate that pop up on the top. Is this a constant which is making this pops up at the top?
obs: Android Device

Change of orientation performance issue - codenameone

when orientation changes in android, native android call the destroy method and total new layout is to be made as far as I know. But I think codenameone doesn't do that which is a great thing. But when I checked the cn1 app in devices while changing from portrait to landscape a blank screen is seen for a while and then the orientation changes.
My Problem is that when I have many more components displayed in a form,
the blank screen appears for a longer duration and sometime it hangs. Does it
happen as I don't use Orientation listener methods etc or is there anything I
can do to solve this issue?
I just tried this on my device and it worked fine for the latest build on my Android 6 device. There was the rotation animation from Android where the screen rotated into its new place.
I'm guessing the rendering of your screen is so slow that Android takes too long to draw it and ends up drawing a black screen instead so it can proceed with the animation.
I can't benchmark an application remotely but I suggest going over the performance of your app and making sure it is truly optimized.

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.

How to set different icon in ALT+TAB view and taskbar

I have a Winform application and I would set two different icons, one for the application shown in the taskbar and the left-upper corner of the window and a different one for the ALT+TAB switch.
The properties Icon of the Form sets only the small one but seems that it is used also for the ALT+TAB view.
In Visual Studio 2012 I've already tried to select a diffenrent icon under Project Properties > Application > Resources > Icon and Manifest.
Any help will be appreciated!
I got the solution which is quite simple. Basically I created a multi-size icon with the same image (64x64, 32x32...) and I changed the 16x16 size with another icon. In this way you can have different type of icon inside one.

Image Icons like Macbook in WPF

I am looking for very simple UI; with three Image Icons on Bottom of the screen. And when user hovers over that Image Icon it pops out and come bigger then normal size when no mouse over the Image.
Exactly like Mac where they have list of Icons on the bottom and when you hover over one Icon it stands out and when you click on it it opens respective application...
How can I do this in WPF C# ?
Or if you can direct me to existing example/code etc ?
Thanks
You are looking for Fish Eye Effect in WPF.
Here is a good article from CodeProject:
FishEyePanel/FanPanel - Examples of custom layout panels in WPF
I wrote this user control that would mimic the dashboard of the Mac's (Fish eye effect).

Resources