2013-06-03 4 views
0

Мой макет:Webview внутри LinearLayout внутри ScrollView не показывает

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent" > 

<LinearLayout 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:layout_margin="20dip" 
    android:background="@drawable/feed_bg_newnew" 
    android:orientation="vertical" > 

    <include 
     android:id="@+id/header" 
     layout="@layout/info_header" /> 

    <WebView 
     android:id="@+id/myWebView" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:layout_margin="5dip" /> 

    <include 
     android:id="@+id/imgAttachmentsRow" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:layout_marginLeft="5dip" 
     android:layout_marginTop="5dip" 
     layout="@layout/attachemnts_thumbs_container" 
     android:visibility="invisible" /> 

    <include 
     android:id="@+id/docAttachmentsContainer" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:layout_marginTop="5dip" 
     layout="@layout/document_attachments_thumbs_container" 
     android:visibility="invisible" /> 

    <include 
     android:id="@+id/feedItemFooter" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     layout="@layout/feed_row_footer" /> 


</LinearLayout> 

WebView не показывает, я также не скрывая его в коде. Все остальные виды отображаются правильно. Если я нажму кнопку, которая входит в одну часть, отобразится веб-просмотр. Содержимое для webView загружается из строки.

Что может быть неправильным?

+0

эй вы нашли решение этой проблемы? Пожалуйста, опубликуйте его как ответ. – Atharva

ответ

0

У webview есть своя система прокрутки. Поэтому, когда у вас длинная веб-страница, веб-просмотр автоматически создает прокрутки , поэтому не логично размещать scrollview для того, что уже есть. просто положил его на улицу, и он покажет хорошо.

Смежные вопросы