深圳全飞鸿

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 70|回复: 0
打印 上一主题 下一主题

关于Android的popwin显示webview不自适应高度的问题

[复制链接]

228

主题

466

帖子

2184

积分

版主

Rank: 7Rank: 7Rank: 7

积分
2184
跳转到指定楼层
楼主
发表于 2025-1-3 16:52:56 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
关于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>
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|nagomes  

GMT+8, 2025-5-5 06:37 , Processed in 0.032559 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表