Android Question [SOLVED] Animation on Scroll View

mackrackit

Member
Licensed User
Longtime User
Hi,

I am trying to figure out how to place an animated compass on a scrollview. The compass works and I have three scrollviews working, but the compass is covering all three views.

How do I put the compass on one view?

Thanks for any help!
 

Attachments

  • MultiplePanels.zip
    32.5 KB · Views: 262
  • Screenshot_20190508-173004.jpg
    10 KB · Views: 701
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is a mistake to upload large screenshots. It makes the post unreadable.

1. This is not needed:
B4X:
Sub Activity_Create(FirstTime As Boolean)
    For i = Activity.NumberOfViews - 1 To 0 Step -1
       Activity.RemoveViewAt(i)
   Next
The activity will always start with no views.

How do I put the compass on one view?
Add it to a panel that belongs to one of the tabs (Panel1).

I recommend you to use TabStripViewPager. Looks and behaves better than TabHost.
 
Upvote 0

mackrackit

Member
Licensed User
Longtime User
Hi Erel,

I scaled the screenshot down, sorry.

Removed the section you suggested, thank you for the tip.

But, I still do not know how to add the compass to the Panel in code.

Will look at TabStripViewPager.

Thank you!
 
Upvote 0

mackrackit

Member
Licensed User
Longtime User
Thank you Erel !!

I was so fixed on "Sub Activity_Create(FirstTime As Boolean)" getting the ScrollViews and Panels working that I got it in my head that the call to EditMode sub had to be made from "Activity_Create".
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…