Android Question [SOLVED] Animation on Scroll View

mackrackit

Member
Licensed 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

Last edited:

Erel

Administrator
Staff member
Licensed 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.
 

mackrackit

Member
Licensed 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!
 

mackrackit

Member
Licensed 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".
 
Top