Reputation:
I have a ScrollView over the complete view. And in the same view I am having a smaller ScrollView which scrolls some text. The problem I am facing is that when I try scrolling the smaller ScrollView I can hardly scroll it. It is the main ScrollView which keeps on scrolling.
I tried using the following
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.article);
if(scrollText.isInTouchMode())
{
scrollArticle.setEnabled(false);
}
/*
Some code
*/
}
But it didn't work. What might be the problem?
Thanks
Upvotes: 1
Views: 2371
Reputation: 8946
There is a new Scroll view introduced in API 22 .Try using NestedScrollView
Upvotes: 0
Reputation: 9113
It's a very old question but it's worth to mention that there is NestedScrollView
in Support Library
Upvotes: 0
Reputation: 108
Someone in google releases a library, Synchronized scrolling which makes multiple scrollviews be scrolled sequentially.
This may help you.
Upvotes: 0
Reputation: 20356
Problem is in putting ScrollView
inside another ScrollView
. It wouldn't work. Try rethink your UI.
Upvotes: 1