前几天修改C1眼镜管家V2.0版本的时候,测试出NBD注册网页在手机上显示的时候出现不适应屏幕的情况。
参考网上帖子后,自己写了一个小的demo试验了一下,结果问题解决了,在这里记录一笔。
demo的布局文件 activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</<