B4A Library [B4X][XUI] WobbleMenu - a cross platform animated bottom navigation

Biswajit

Active Member
Licensed User
Longtime User
Sorry didn't understand. The upper half is transparent by default. Post a small screenshot of that menu area. And explain what is the problem.
 

EduardoElias

Well-Known Member
Licensed User
Longtime User
Sorry didn't understand. The upper half is transparent by default. Post a small screenshot of that menu area. And explain what is the problem.

See the red box... I cant get rid of that area in b4a and b4i



the map is going under, changing the background color to transparent does nothing... changing the activity background color on the layout does change this area, but that does not solve the map thing.
 

Biswajit

Active Member
Licensed User
Longtime User
changing the background color to transparent does nothing
Maybe your layout is wrong. Maybe you have placed the wobble menu right after the map view so the map view's bottom is the top of the wobble menu.

Half of the wobble menu view has the shadow and the selected icon view with a transparent background and the other half has the bottom part.

So increase the map view height. New height = Current height + (wobble menu height / 2)

I think it will solve the issue.
 

EduardoElias

Well-Known Member
Licensed User
Longtime User

The map is already under the wobblemenu.... so if it is transparent is should be showing it , if you see to the left there is a small portion of the map right there
 

Biswajit

Active Member
Licensed User
Longtime User
The map is already under the wobblemenu.... so if it is transparent is should be showing it , if you see to the left there is a small portion of the map right there
Can you post your layout file?
 

aeric

Expert
Licensed User
Longtime User
When I try to run the example, I encountered the following error:

Error occurred on line: 94 (WobbleMenu)
java.lang.NumberFormatException: For input string: "null"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:539)
at anywheresoftware.b4a.BA.ObjectToNumber(BA.java:684)
at b4a.example.wobblemenu._designercreateview(wobblemenu.java:1095)


I fixed it by open the layout designer and set the corner radius to value other than 0.
 

Pravee7094

Active Member
I faced the same Issue. I just open the designer and save the layout without any changes and then run. It successfully worked.
 

epiCode

Active Member
Licensed User
Hi @Biswajit
I see that many users have already raised this concerns regarding the other controls/layout under the wobble menu.

As I understand, height of menu will vary on different devices depending on height to width ratio. It makes other content either leave a gap or go under the menu which might not be intended.

It would be nice if you can share from following image:
A - (Top height which can be retrieved from getHeight method)
B - How to Calculate that ?

Also, is it possible that height be fixed lets say at 100dip irrespective of device height ?



Thanks!
 

tufanv

Expert
Licensed User
Longtime User
Hello,
Hello,

Sometimes we got some crash reports with this:
java.lang.IllegalArgumentException - Cannot set 'scaleX' to Float.NaN
https://console.firebase.google.com...85bd76f?time=last-seven-days&versions=5 (502)
Any solution?
 

Biswajit

Active Member
Licensed User
Longtime User

tufanv

Expert
Licensed User
Longtime User
Could you please share the error log? The provided links are not working.
I had copied the text instead I pasted here the url sorry

B4X:
Fatal Exception: java.lang.RuntimeException
java.lang.IllegalArgumentException: Cannot set 'scaleX' to Float.NaN
anywheresoftware.b4a.keywords.Common$14.run (Common.java:1750)

com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)

Caused by java.lang.IllegalArgumentException
Cannot set 'scaleX' to Float.NaN
android.view.View.sanitizeFloatPropertyValue (View.java:17483)

anywheresoftware.b4a.objects.B4XViewWrapper.SetLayoutAnimated (B4XViewWrapper.java:180)
ct.canlidoviz.wobblemenu$ResumableSub_SetCircleIcon.resume (wobblemenu.java:1163)
anywheresoftware.b4a.keywords.Common$14.run (Common.java:1748)

com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…