2011-03-06 36 views
1

在我的應用程序中,我想在應用程序的視圖中顯示一個網頁。部分應用程序的Webview

我不確定如何將視圖應用於應用程序的一部分,並在視圖中打開網頁。

當用戶單擊按鈕時,視圖中的網頁將打開。

的網頁流量會在屏幕的右側像下面的圖片中:

enter image description here

這可能嗎?

請幫忙。由於

編輯:

我已經包括了相對佈局我已經有內tablelayout。

<TableLayout android:layout_width="200dip" 
     android:layout_height="100dip" android:stretchColumns="1" 
     android:background="#000000" xmlns:android="http://schemas.android.com/apk/res/android" 
     android:layout_marginLeft="250px" 
     android:layout_marginTop="80px"> 
<TableRow> 
<WebView xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/webview" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
/> 
</TableRow> 
</TableLayout> 

我然後調用我的應用程序像這樣的WebView一個onclick按鈕內:

mWebView = (WebView) findViewById(R.id.webview); 
      mWebView.getSettings().setJavaScriptEnabled(true); 
      mWebView.loadUrl("http://www.google.com"); 

但是,當我點擊這個沒有任何反應?

回答