Limit height of ListView on Android

后端 未结 16 1366
广开言路
广开言路 2020-11-28 23:07

I want to show a button under a ListView. Problem is, if the ListView gets extended (items added...), the button is pushed out of the screen.

16条回答
  •  无人及你
    2020-11-28 23:51

    I solved this by putting the ListView inside a ScrollView. Lint didn't like it, but by adding a minHeight and setting the fillViewport to true, I have a nice result.

        
    
            
    
            
                
    

提交回复
热议问题