Android Question AXrLottie view not covering full screen

AymanA

Active Member
Licensed User
Hi All,

I have been trying to figure this out, I have a lottie file where I want to add as a splash screen; however it is not covering the whole area in fullscreen.

Below is the code I am using:

B4X:
    Dim AXrLottie As AXrLottie
    AXrLottie.Initialize
 
    LottieView.Initialize("")
    Activity.LoadLayout("splashlayout")
 
    Activity.AddView(LottieView,0,0,100%x,100%y)
 
    Dim Drawable As AXrLottieDrawableBuilder

    Drawable.InitializeFromFile(File.DirAssets,"alkanto2.json") _
                .SetSize(1440,3040) _
                .SetAutoStart(True) _
                .SetCacheEnabled(True) _
                .SetSpeed(0.8)
    LottieView.SetLottieDrawable(Drawable.Build)
    LottieView.GetLottieDrawable.AutoRepeat = 1

Attached is the output screenshot
 

Attachments

  • Screenshot_20220120-141416.jpg
    Screenshot_20220120-141416.jpg
    304.2 KB · Views: 238

AymanA

Active Member
Licensed User
Thank you @Donfor your reply!

In the designer there is no view that I can add and set the anchor for, seems this is only done on code based on the example for AXrLottie library - I tried in code to set the width/height for the lottieview but to no avail.

I will put together a smaller project file and will upload it here.

Really appreciate your help!
 
Upvote 0
Top