Android Studio Webview-无法让Adjustresize为我工作

时间:2019-11-29 01:34:18

标签: javascript android android-manifest

我制作了一个基于Webview的应用程序,并使用了WordPress构建的网站。 Adjustresize对我不起作用。我在这里查看了许多帖子,但没有找到解决方案。 (适用于移动Chrome)。

此外,如果我按“附加”文件(如果我在chrome上使用,在网站上也可以使用),则什么也不会发生。就像没有权限仅在我的应用中访问存储。

我对这一切真的很陌生,如果这些问题真是简单而愚蠢,我感到抱歉。

Manifest.xml

<?xml version="1.0" encoding="utf-8"?>

<uses-permission android:name="android.permission.INTERNET"></uses-permission>

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="כלב"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen">



    <activity android:name=".MainActivity"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
                     <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <action android:name="android.intent.action.VIEW" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity android:name=".SplashScreen"
        android:theme="@style/Theme.AppCompat.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

main_activity.xml

xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#f47110"
tools:context=".MainActivity">

<WebView
    android:id="@+id/webView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:layout_editor_absoluteX="1dp"
    tools:layout_editor_absoluteY="1dp" />

0 个答案:

没有答案