edittext 显示问题

来源:互联网 发布:组织架构优化原则 编辑:程序博客网 时间:2024/06/16 17:41

windowSoftInputMode属性 :

stateHidden  when activity oncreate edittext will hidden

stateVisible when activity oncreate edittext will visible

stateAlwaysHidden when  activity onresume edittext  will hidden

stateAlwaysVisible when activity onresume edittext will visible

stateUnspecified   the default mode,system choose suitable state

stateUnchanged maintain the last mode wheter it is visible or hidden


adjustNothing      edittext will coverd by keyboard

adjustUnspecified    the default mode ,let system choose

adjustPan    edittext not coverd by keyboard,all layout will move up

adjustresize  you need to pick edittext in the relativelayout ,just edittext  above the keyboard,other ui compenent stand old position

0 0
原创粉丝点击