美文网首页APIcloud
superwebView activity进入H5页面会黑屏一下

superwebView activity进入H5页面会黑屏一下

作者: 一个冬季 | 来源:发表于2018-03-27 14:16 被阅读1次

主要原因是你没有按照官方的主题去设置

//activity
<activity android:name="com.sdk.samples.apicloud.WebPageModule" 
            android:screenOrientation="portrait" 
            android:windowSoftInputMode="adjustResize" 
            android:theme="@android:style/Theme.Translucent.NoTitleBar" 
            android:configChanges="orientation|locale|keyboardHidden|screenLayout|screenSize|smallestScreenSize|keyboard" />


//主题
    <style name="Theme.Translucent.NoTitleBar">
        <item name="windowNoTitle">true</item>
        <item name="windowContentOverlay">@null</item>
    </style>

相关文章

网友评论

    本文标题:superwebView activity进入H5页面会黑屏一下

    本文链接:https://www.haomeiwen.com/subject/ietscftx.html