Android Question [ Designer Script ] error in Landscape and Portrait functions

Waldemar Lima

Well-Known Member
Licensed User
Longtime User
hello everyone !!

i m trying to use this >

B4X:
'All variants script
AutoScaleAll

If (Landscape = True) Then

    If (ActivitySize < 6) Then

        lottie.Width = 100%x
        lottie.HorizontalCenter = 50%x
        lottie.VerticalCenter = 50%y

        splash_loading.HorizontalCenter = 50%x
        splash_loading.Top = (lottie.Height + lottie.Top) * 1.05

    Else

        lottie.Width = 100%x
        lottie.HorizontalCenter = 50%x
        lottie.Top = 0
        lottie.Height = 60%y

        splash_loading.HorizontalCenter = 50%x
        splash_loading.Top = (lottie.Height + lottie.Top) + 1%y


    End If

End If

end show this error >

B4X:
B4A Version: 9.80
Java Version: 8
Parsing code.    (0.08s)
Building folders structure.    (1.66s)
Compiling code.    (0.16s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.00s)
    (Android Support Library)
Generating R file.    (0.00s)
Compiling generated Java code.    Error
javac 1.8.0_251
src\com\amensagem\app\designerscripts\LS_splash.java:12: error: ')' expected
if (((String.valueOf( String.valueOf(!anywheresoftware.b4a.keywords.LayoutBuilder.isPortrait())).equals(String.valueOf("true")))) {
                                                                                                                                 ^
1 error
 
Top