您的位置:首页 > 其它

安卓开发中将activity设成translucent导致输入法遮挡edittext,windowSoftInputMode设置无效问题

2017-04-16 16:30 681 查看
<item name="android:windowIsTranslucent">true</item>

<style name="horizontal_slide" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowAnimationStyle">@style/slide</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
</style>

在stackoverflow上找到解决办法,在根布局添加

android:fitsSystemWindows="true"

http://stackoverflow.com/questions/21092888/windowsoftinputmode-adjustresize-not-working-with-translucent-action-navbar
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐