Si ma WebView est si grande, je n'ai aucun problème et la hauteur de WebView correspond à la hauteur de l'écran, même lorsque le contenu est si grand que je peux faire défiler le contenu de WebView. Toutefois, si le contenu de WebView est faible, la hauteur de WebView ne correspond pas à l'écran.Comment adapter la taille de la hauteur WebView à la hauteur de l'écran?
C'est ma mise en page:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<ScrollView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fitsSystemWindows="true">
<WebView android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fitsSystemWindows="true" />
</ScrollView>
<LinearLayout android:id="@+id/media_player"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visibility="visible">
<Button android:textStyle="bold"
android:id="@+id/ButtonPlayStop"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:drawable/ic_media_play" />
<SeekBar android:id="@+id/SeekBar"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_below="@id/ButtonPlayStop" />
</LinearLayout>
Voici la capture d'écran:
Toute personne peut me aider à résoudre ce problème?
Votre réponse était très grande. Merci de votre aide. J'ai appris que je devais travailler plus avec RealtiveLayout http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html –