V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Registering
V2EX  ›  程序员

android 输入法挤出布局

  •  
  •   Registering · 2014-12-26 18:37:58 +08:00 · 2797 次点击
    这是一个创建于 3410 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我的activity取出掉了title,

    头部自己写的一个linearlayout做title


    然后中间是一个listview

    底部是一个edittext


    点击edittext,弹出输入法,title和listview,edittext都被挤上上去了,



    我想要的是控制title不会被挤上去,listview和edittext可以被挤上去。


    上网找了方法,但是经常是布局不动,输入法覆盖了edittext
    3 条回复    2014-12-27 13:02:09 +08:00
    jamev5
        1
    jamev5  
       2014-12-26 19:27:40 +08:00
    根布局设置为RelativeLayout 然后EditText设置 alignParentBottom=true , ListView above EditText。ListView below title。这样呢。
    darktiny
        2
    darktiny  
       2014-12-26 19:35:40 +08:00 via iPhone
    android:windowSoftInputMode="stateUnspecified|adjustResize"
    Registering
        3
    Registering  
    OP
       2014-12-27 13:02:09 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   919 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 19:55 · PVG 03:55 · LAX 12:55 · JFK 15:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.