B4X FEED [SOLVED] How to get relative top from a scrollview?

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: [SOLVED] How to get relative top from a scrollview? است. این موضوع تا کنون 21 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع [SOLVED] How to get relative top from a scrollview?
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
21
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hi guys,

I use this codes to get relative top & left from this pos :
[H3] [/H3]
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...
برای دیدن تصاویر باید ثبت نام کنید


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.

 

عقب
بالا