开发者社区> 问答> 正文

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

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

此外,如果我按“附加”文件(如果我在chrome上使用,则可以在网站上使用),但没有任何反应。就像没有权限仅在我的应用中访问存储。

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

Manifest.xml

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

<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

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" />

展开
收起
Puppet 2019-12-02 09:19:56 551 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
58同城Android客户端Walle框架演进与实践之路 立即下载
Android组件化实现 立即下载
蚂蚁聚宝Android秒级编译——Freeline 立即下载