Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
208 views
in Technique[技术] by (71.8m points)

javascript - Android Studio Webview-无法让Adjustresize为我工作(Android Studio Webview- can't make Adjustresize work for me)

I made an app based on Webview, and using a website that built by WordPress.

(我制作了一个基于Webview的应用程序,并使用了WordPress构建的网站。)

Adjustresize doesn't work for me.

(Adjustresize对我不起作用。)

I looked on many posts here and didn't find a solution.

(我在这里查看了许多帖子,但没有找到解决方案。)

(It work on mobile chrome).

((它适用于移动Chrome)。)

In addition, if I press on 'attach' file (that work on the website if I use on chrome), nothing happens.

(此外,如果我按“附加”文件(如果我在chrome上使用,则可以在网站上使用),但没有任何反应。)

Like there are no premission to access the storge only in my app.

(就像没有权限仅在我的应用中访问存储。)

I am really new with all of this so I am sorry if these are really simple and stupid questions.

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

Manifest.xml

(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

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

  ask by tamir992 translate from so


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...