2016-03-28 2 views
-1

アンドロイドのウェブページがロードされているときにプログレスバーのロードを成功させ、ロードが完了したらプログレスバーを閉じる。しかし、私はロードスタイルを通常のプログレスバー(通常のページ読み込みと同じ回転円ではない)として表示したい。すべてのヘルプは感謝、プログレスバーページのロードアンドロイドウェブビュー

私layout.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="com.example.vic.webviewtest2.MainActivityFragment" 
    tools:showIn="@layout/activity_main"> 

    <ProgressBar 
     android:id="@+id/progressBar" 
     style="?android:attr/progressBarStyle" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_alignParentTop="true" 
     android:layout_centerHorizontal="true" /> 

    <WebView xmlns:android="http://schemas.android.com/apk/res/android" 
     android:id="@+id/webview" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_below="@id/progressBar"> 
    </WebView> 

</RelativeLayout> 
+0

の可能性のある重複(http://stackoverflow.com/questions/2967337/how-do-i-use-android -progressbar-in-determinate-mode) –

答えて

0

を大幅に感謝している私は解決策を探していました。私はここに1つを得た:[?私は確定モードでのAndroidのProgressBarを使用するにはどうすればよい]

ProgressBar while Loading WebView in Android

関連する問題