网页加载错误显示错误网址问题

This commit is contained in:
18401019693
2022-11-17 11:37:35 +08:00
parent 977bfa910c
commit 267d07f3a5
5 changed files with 57 additions and 9 deletions

View File

@@ -8,9 +8,9 @@
android:id="@+id/ft_title"
android:layout_width="match_parent"
android:layout_height="65dp"
android:visibility="visible"
android:background="@color/white"
android:paddingTop="19dp">
android:paddingTop="19dp"
android:visibility="visible">
<RelativeLayout
android:layout_width="match_parent"
@@ -39,6 +39,12 @@
</RelativeLayout>
</FrameLayout>
<TextView
android:id="@+id/html_error"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<RelativeLayout
android:id="@+id/root_view"
android:layout_width="match_parent"
@@ -49,20 +55,20 @@
style="@android:style/Widget.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="3dp"
android:progressDrawable="@drawable/bg_horizontal_progressbar"/>
android:progressDrawable="@drawable/bg_horizontal_progressbar" />
<LinearLayout
android:orientation="vertical"
android:id="@+id/rootView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:layout_height="match_parent"
android:orientation="vertical" />
<com.opensource.svgaplayer.SVGAImageView
android:id="@+id/svga"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"/>
android:layout_gravity="center_vertical" />
</RelativeLayout>

View File

@@ -51,6 +51,12 @@
</RelativeLayout>
<TextView
android:id="@+id/html_error"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<WebView
android:id="@+id/rlWebview"
android:layout_width="match_parent"