adjustpan not work in expandablelistview when click second time for the same edittext

前端 未结 2 537
别跟我提以往
别跟我提以往 2021-01-26 16:56

first time,click an edittext in expandablelistview,the whole layout scrolled ,and user can see edittext. then click softkeyboard finish to collapse softkeyboard and click this e

2条回答
  •  旧巷少年郎
    2021-01-26 17:32

    I also faced the same issue, but after googling the issue for some time i ended up the problem as below.

    1) Add android:windowSoftInputMode="adjustPan" tag inside activity of manifest file

        
    

    2) add android:descendantFocusability="beforeDescendants" attribute to your expandable listview as below.

        
    

提交回复
热议问题