How to show a button at the end of an Android ListView

前端 未结 9 1159
臣服心动
臣服心动 2020-12-02 12:18

I want to show a button at the end of an Android list view. How can I achieve this?

I don\'t want to stick it to the activity bottom using alignparentbottom=

9条回答
  •  無奈伤痛
    2020-12-02 12:48

    You could, of course, use a custom adapter and specify a footer item. But you could probably also get away with putting it at the bottom of a ScrollView and have the ListView stretch vertically to the content:

    
    
    
      
    
        
    
          
    
          
    
            

提交回复
热议问题