Although, this question has already been asked here: Error: Android-XML:Placing a <WebView> in a parent element that uses a wrap_content size can lead to subtle bugs; use match_parent . But it didn't have any satisfactory answer.So I am asking it again. I have taken a webview
in my xml width height and width as match_parent
. But every time I open this page, it shows me error "Placing a <WebView>
in a parent element that uses a wrap_content
size can lead to subtle bugs; use match_parent
".
Here is the code:
<WebView
android:id="@+id/wbvw_questn"
android:layout_height="match_parent"
android:layout_width="match_parent"/>