-1
我已经成功实现了一个进度条加载,当我的android网页加载和页面完成加载时关闭进度条。但我想显示加载样式作为正常的进度条(不像普通的页面加载旋转的圆圈)。任何帮助非常感激,谢谢,进度条页面加载android webview
我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>
的可能的复制(http://stackoverflow.com/questions/2967337/how-do-i-use-android -progressbar功能于确定的模式) –