android - Putting WebView in ScrollView causes WebView to not display content -


i have simple relativelayout elements inside.

<!-- header bar --> <linearlayout     android:id="@+id/header_bar"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:layout_alignparenttop="true"/>  <!-- note header view --> <framelayout     android:id="@+id/note_header_view"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="vertical"     android:layout_below="@id/header_bar"/>  <!-- web view container view --> <framelayout     android:id="@+id/web_view_container"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:layout_below="@id/note_header_view"/> 

i trying place these elements in scrollview:

<scrollview     android:layout_width="fill_parent"     android:layout_height="fill_parent">      <!-- header bar -->     <linearlayout         android:id="@+id/header_bar"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_alignparenttop="true"/>      <!-- note header view -->     <framelayout         android:id="@+id/note_header_view"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:orientation="vertical"         android:layout_below="@id/header_bar"/>      <!-- web view container view -->     <framelayout         android:id="@+id/web_view_container"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_below="@id/note_header_view"/>  </scrollview> 

when this, web view not display content. resizes view size of webpage (if add footer below webview, longer webpages push footer down farther), cannot see actual content.

i understand putting scrolling view (webview) inside scrolling view (scrollview) discouraged, need webview allows custom header , footer views. if there better solutions, feel free share those!

does have ideas why webview stops displaying content once embedded in scrollview.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -