0

My Layout structure is like this

 <LinearLayout>
        <scrollview>
      <RelativeLayout>
       <scrollview>
          ...
         ...   
       </scrollview>
      </RelativeLayout>
      </scrollview>
      </LinearLayout>

But problem is that when we scroll inner scrollview outer scrollview also scrolling due to which I unable to scroll inner scrollview which contains 50 line And able to read only 10 line please anyone guide me,How I can Manage it.

sandee
  • 349
  • 1
  • 4
  • 16
  • What are you trying to achieve? Having 2 scrollviews in one view is confusing the OS. – Sana Jun 15 '12 at 03:57
  • The answer is already here: http://stackoverflow.com/questions/4490821/scrollview-inside-scrollview, it doesn't make sense to nest scrollviews, because what view would move when you scroll? If you have a horizontal and a vertical scrollview, then you need to override scrollview, like so: http://stackoverflow.com/questions/5012545/android-scrollview-inside-a-gallery – Christine Jun 15 '12 at 04:01
  • I am open details there are 6 details all are in same size view but when details size big then problem occure and client say do this as iphone in iphone this is working. – sandee Jun 15 '12 at 04:03

2 Answers2

3

As ListView has inbuilt scroll so this practice will be of same pattern ListView inside ScrollView(not feasible with Android), Then also you can refer this

Mohammed Azharuddin Shaikh
  • 41,633
  • 14
  • 96
  • 115
0

If I do that for a scrollview inside scrollview it work very well (tested only for scrollview). I don't know if it's work for a listview.

@Override public boolean onInterceptTouchEvent(MotionEvent ev) {

if(getFocusedChild() != null) {
          getParent().requestDisallowInterceptTouchEvent(true);
}

....

Ralph
  • 51
  • 1
  • 2