WebView.setScaleX 后,视图显示不全
<?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真实的缩放大小,但为什么显示会变更小了呢