在android webview中显示图像下方的文本

在android webview中显示图像下方的文本,android,webview,Android,Webview,在我的应用程序中,我使用webview,在这个webview中,我设置数据。此数据包含一个图像和一些文本行。我的问题是,若图像很小,那个么文本从图像的右侧开始,若图像很大,那个么文本从图像的下方开始。我想显示图像下方的所有文本数据。如何在webview中执行此操作?包含webview的我的xml文件如下: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:too

在我的应用程序中,我使用webview,在这个webview中,我设置数据。此数据包含一个图像和一些文本行。我的问题是,若图像很小,那个么文本从图像的右侧开始,若图像很大,那个么文本从图像的下方开始。我想显示图像下方的所有文本数据。如何在webview中执行此操作?包含webview的我的xml文件如下:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
         xmlns:tools="http://schemas.android.com/tools"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         tools:context="test.material.com.retrofitdemo3.NewsArticleFragment">

<WebView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/webView"
    android:layout_centerVertical="true"
    android:layout_centerHorizontal="true"
    android:layout_below="@id/toolbar"/>

<include
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
    layout="@layout/layout_error"
    android:id="@+id/relativeLayoutError"
    />

</RelativeLayout>

如有任何建议,将不胜感激。提前感谢

请发布您的java代码too@PPD:此问题中没有特定于WebView的内容。只需在HTML中的标记后插入标记,这将强制图像后面的文本从新行开始。