深圳全飞鸿

标题: 关于Android的popwin显示webview不自适应高度的问题 [打印本页]

作者: syant    时间: 2025-1-3 16:52
标题: 关于Android的popwin显示webview不自适应高度的问题
关于Android的popwin显示webview不自适应高度的问题

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:tools="http://schemas.android.com/tools"
  4.     android:layout_width="match_parent"
  5.     android:layout_height="wrap_content"
  6.     android:orientation="vertical"
  7.     android:windowSoftInputMode="stateAlwaysHidden"
  8.     tools:ignore="WebViewLayout">

  9.     <ProgressBar
  10.         android:id="@+id/webview_progressbar"
  11.         style="?android:attr/progressBarStyleHorizontal"
  12.         android:layout_width="fill_parent"
  13.         android:layout_height="2dp" />

  14.     <WebView
  15.         android:id="@+id/webview"
  16.         android:layout_width="match_parent"
  17.         android:layout_height="wrap_content"></WebView>
  18. </LinearLayout>
复制代码







欢迎光临 深圳全飞鸿 (http://www.nagomes.com/disc/) Powered by Discuz! X3.2