-1

I have a problem with this topic:Synchronise ScrollView scroll positions - android

I am trying to understand this and it seems ok, but I do not understand how to declare this all work in XML file in this topic.

Please if you could show me the correct XML file. It is very important for me.

Community
  • 1
  • 1
Darek
  • 193
  • 3
  • 14

1 Answers1

0

First of all you need to copy ObservableScrollView in your application package and after that in your xml file. Define it as with your package name like com.<your package name>.ObservableScrollView:

<"change to your package name".ObservableScrollView
    android:id="@+id/scrollview1"
    ... >

    ...

</"change to your package name".ObservableScrollView>
GrIsHu
  • 29,068
  • 10
  • 64
  • 102
  • One more question....can this be done with FragmentList? Is it possible? I have looked in unimplemented methods and have not found any similar to onScrollChanged(). – Darek Oct 18 '13 at 11:27
  • Yes, It can implemented with `Fragments` But i guess not with `FragmentList` as its scrollview explicitly. – GrIsHu Oct 18 '13 at 11:50