What I have:
Right now I have a Scroll view as a parent. Inside this scroll view, I am using a WebView that loads a URL and then shows text in it. Here is my xml:
<ScrollView android:id="@+id/parentScroll" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/Heading" > <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="5dp" > <WebView android:id="@+id/webView" android:layout_width="match_parent" android:layout_height="300dp" android:background="@drawable/webview" /> </RelativeLayout> </ScrollView> What I want:
I want to scroll webView inside it. When I touch the webView, unfortunately the parent scroll view gets called. I have to keep Parent scroll view also but besides this I want to scroll WebView content inside it when I touch on webView.
How can I do this?