2011-12-06 79 views
0

我想在一個頁面中顯示html字符串的內容並在同一頁面中顯示圖像。我試圖定義一個這樣的佈局android:顯示html字符串和圖像

<RelativeLayout android:layout_width="wrap_content" 
     android:layout_height="fill_parent" android:background="@drawable/home_bg"> 
     <ImageView android:id="@+id/aboutcmkimage" 
      android:layout_width="wrap_content" android:layout_height="wrap_content" 
      android:layout_alignParentRight="true" android:src="@drawable/about" 
      android:padding="5dip" /> 
     <WebView android:id="@+id/aboutcmk" android:layout_width="wrap_content" 
      android:layout_height="fill_parent" android:textColor="#000000" 
      android:layout_toLeftOf="@+id/aboutcmkimage" 

      android:layout_alignParentTop="true" android:layout_alignParentLeft="true" /> 

    </RelativeLayout> 

問題是,顯示器來作爲兩個不同的列。第一列顯示的html字符串和下一列的圖片。我希望兩者都混合起來,看起來像一個頁面。我想要文字左側的圖像和圖像下面的所有空間。請幫助我實現這一點。非常感謝您的時間

回答