Android How to adjust layout in Full Screen Mode when softkeyboard is visible

前端 未结 25 2133
后悔当初
后悔当初 2020-11-22 03:56

I have researched a lot to adjust the layout when softkeyboard is active and I have successfully implemented it but the problem comes when I use android:theme=\"@andro

25条回答
  •  迷失自我
    2020-11-22 04:32

    You want the bottom bar to stick to the bottom of the view, but when the keyboard is displayed, they should move up to be placed above the keyboard, right?

    You can try this code snippet:

    
    
        
        
    
        
        
    
         
    
        
    
                ...
    
            
         
      
    

    The BottomBar will stick to the bottom of the view and the LinearLayout containing the ScrollView will take what's left of the view after the top/bottom bar and the keyboard are displayed. Let me know if it works for you as well.

提交回复
热议问题