V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Registering
V2EX  ›  程序员

android 输入法挤出布局

  •  
  •   Registering · Dec 26, 2014 · 3196 views
    This topic created in 4140 days ago, the information mentioned may be changed or developed.
    我的activity取出掉了title,

    头部自己写的一个linearlayout做title


    然后中间是一个listview

    底部是一个edittext


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



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


    上网找了方法,但是经常是布局不动,输入法覆盖了edittext
    3 replies    2014-12-27 13:02:09 +08:00
    jamev5
        1
    jamev5  
       Dec 26, 2014
    根布局设置为RelativeLayout 然后EditText设置 alignParentBottom=true , ListView above EditText。ListView below title。这样呢。
    darktiny
        2
    darktiny  
       Dec 26, 2014 via iPhone
    android:windowSoftInputMode="stateUnspecified|adjustResize"
    Registering
        3
    Registering  
    OP
       Dec 27, 2014
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3739 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 04:30 · PVG 12:30 · LAX 21:30 · JFK 00:30
    ♥ Do have faith in what you're doing.