WebView.setScaleX 后,视图显示不全

lixiaoyu0123 2015-02-02 05:15:20
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<View
android:id="@+id/view1"
android:layout_width="300dp"
android:layout_height="300dp"
android:background="#ff0000" >
</View>

<FrameLayout
android:id="@+id/layoutRoot"
android:layout_width="300dp"
android:layout_height="300dp"
android:background="#000000" >

<WebView
android:id="@+id/myWebView1"
android:layout_width="match_parent"
android:layout_height="match_parent" />

</FrameLayout>

<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginBottom="126dp"
android:layout_marginLeft="45dp"
android:text="Button" />

</RelativeLayout>




设置了缩放后,黑色部分为webView真实的缩放大小,但为什么显示会变更小了呢
...全文
251 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
山鹰1985 2015-02-03
  • 打赏
  • 举报
回复
你是在做视频播放器?如果是可以用MediaPlayer。
lixiaoyu0123 2015-02-02
  • 打赏
  • 举报
回复
继续等 求高手出现
lixiaoyu0123 2015-02-02
  • 打赏
  • 举报
回复
在线等。。。。
lixiaoyu0123 2015-02-02
  • 打赏
  • 举报
回复
在线等。。。

80,355

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧