Hi guys,
I use this codes to get relative top & left from this pos :
It worked OK, but on scrollview relative left & top doesn't works.
Attached is the simple project to demonstrate it.
On the project, there is a panel, when clicked, will log top position.
On ScrollView, top position is always the same even scrollview scrolled.
Can anybody help me how to fix it?
Thanks in advance.
I use this codes to get relative top & left from this pos :
Get relative view position
Description: These two subs will get the positions of a view relative to the activity, regardless of how many parent panels it is nested in. Version: 2 SubName: GetRelativeTop 'Iterative sub to get the views Top relative to the activity window Public Sub GetRelativeTop(V As JavaObject) As Int...
www.b4x.com
It worked OK, but on scrollview relative left & top doesn't works.
Attached is the simple project to demonstrate it.
On the project, there is a panel, when clicked, will log top position.
On ScrollView, top position is always the same even scrollview scrolled.
Can anybody help me how to fix it?
Thanks in advance.