Android的 - 调整滚动视图时,键盘最多为Android 5.0(棒棒糖) [英] Android - adjust scrollview when keyboard is up for android 5.0 (lollipop)

查看:204
本文介绍了Android的 - 调整滚动视图时,键盘最多为Android 5.0(棒棒糖)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Android的棒棒糖一个问题,画面不调整大小时softkeyboard出现。

I have a problem on android lollipop, screen doesn't adjust size when the softkeyboard comes up.

这是从活动我做了我的一个明显的例子介绍:

This is my manifest intro example from one of the activity i made:

android:windowSoftInputMode="stateAlwaysHidden|adjustResize" 

是否有添加一些新的东西,我们必须要考虑到为Android 5.0?滚动视图工作正常,在Android< 5.0。

Is there something new that is added and we have to take into account for android 5.0 ? The scrollview works fine on android < 5.0.

推荐答案

的问题是,它并没有与半透明的状态栏工作,我必须设置

the problem was that it didn't work with translucent status bar and i had to set

 android:fitsSystemWindows="true"

在我的主要布局

这篇关于Android的 - 调整滚动视图时,键盘最多为Android 5.0(棒棒糖)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆