如何在分屏中显示两个类似的webview,我想复制一个webview,我想同时滚动两个.谢谢
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:weightSum="2">
<WebView
android:id="@+id/webView"
android:layout_width="150dp"
android:layout_height="fill_parent"
android:layout_weight="1"
>
</WebView>
<WebView
android:id="@+id/webView2"
android:layout_width="150dp"
android:layout_height="fill_parent"
android:layout_weight="1"></WebView>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
我试过这个,但我想复制webview.这显示另一个,我必须再次加载网址.
我不想在第二个加载agin我只想成为镜像.
我的代码工作得很完美,但今天我得到了这个例外,有人可以帮忙吗?日志附上谢谢
10-03 13:33:50.141 15352-17764/com.shahzain.ada E/StorageException: StorageException has occurred.
An unknown error occurred, please check the HTTP result code and inner exception for server response.
Code: -13000 HttpResult: 200
10-03 13:33:50.141 15352-17764/com.shahzain.ada E/StorageException: the maximum allowed buffer size was exceeded.
java.lang.IndexOutOfBoundsException: the maximum allowed buffer size was exceeded.
at com.google.firebase.storage.StorageReference$5.doInBackground(Unknown Source)
at com.google.firebase.storage.StreamDownloadTask.run(Unknown Source)
at com.google.firebase.storage.StorageTask$8.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
10-03 13:33:50.141 15352-17764/com.shahzain.ada E/StorageException: StorageException has occurred.
An unknown error occurred, please check the HTTP result code and …Run Code Online (Sandbox Code Playgroud)