Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当文本字段收到焦点时,我希望活动有一个偏移量作为微调器容器。
我想要达到的目标:
我得到什么:
我怎样才能达到期望的行为?有没有办法将任何视图包装在adjustPan尊重的容器中?
adjustPan
将windowSoftInputMode属性设置为adjustResize
windowSoftInputMode
adjustResize
<activity android:windowSoftInputMode="adjustResize"></activity>