-2

I am using scrollview like this way of layout inside scrollview and nested scroll view both are not working

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

inside the scorll view i am trying fillviewport,scrollbar vertical like this also but it all not working. i am doing inside the fragment.

InsaneCat
  • 2,115
  • 5
  • 21
  • 40
karthik
  • 47
  • 9
  • Where is your code? – InsaneCat Jan 22 '20 at 05:30
  • 1
    this is my code layouts – karthik Jan 22 '20 at 05:33
  • Refer this one may help you.. your queation is not clear.. : https://stackoverflow.com/Questions/4490821/scrollview-inside-scrollview – InsaneCat Jan 22 '20 at 05:41
  • 1
    We need to know what you mean by "not working." It would be easier for us to tell if your code were sufficient to reproduce the issue, but I assume it isn't since empty layouts will mean the scroll view doesn't need to scroll. – jack Jan 22 '20 at 05:43

1 Answers1

0

It's Work Well In My Code,

You Can Try This:

 <ScrollView
    android:id="@+id/scrollView1"
    android:layout_width="match_parent"
    android:fillViewport="true"
    android:layout_height="wrap_content" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal" >

            //Your Widgets....

        </LinearLayout>

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal" >

           //Your Widgets....

        </LinearLayout>
     </LinearLayout>
   </ScrollView>
InsaneCat
  • 2,115
  • 5
  • 21
  • 40
Rohit Soni
  • 1,300
  • 6
  • 12