Sumant
Sumant

Reputation: 2795

scrollview works on emulator but not working on android device

In my android app there one scroll view is present,second scroll view is present which is present in first scroll view.The first scroll view is for full screen and the Second scroll view holds text view in it.Now in emulator it is working fine i.e.both scroll view works fine but when i deployed the app on device the second scroll view is not working. The first scrollview is in xml but the second one is dynamically created.

Scroll view in emulator is not working smoothly..

thnx for any help

Upvotes: 2

Views: 1455

Answers (2)

Veeresh
Veeresh

Reputation: 1052

I guess your emulator runs on pre 2.1 and device to 2.2 or higher. If so, then you are relying on faulty behaviour that was fixed in 2.2 . Again, it is advised by google to not to nest scrolling views

Upvotes: 0

sergeytch
sergeytch

Reputation: 161

Google does not advice to use ListView inside ScrollViews, because scrolling should be processed by only one View. And maybe the same applies to ScrollView inside ScrollView also. No workaround is provided by Google guys. You can check these web-pages:
http://code.google.com/p/android/issues/detail?id=6552
http://groups.google.com/group/android-beginners/browse_thread/thread/2d1a4b8063b2d8f7

Upvotes: 1

Related Questions