Maintain scroll position when adding to ListView with reverse endless-scrolling

后端 未结 4 1800
不知归路
不知归路 2021-02-05 10:38

I am building a chat-like Android application, similar to Hangouts. For this purpose I am using a vertical ListView with stackFromBottom=true and transcriptMo

4条回答
  •  误落风尘
    2021-02-05 10:59

    Edit to account for additional information:

    I think I've found your issue. I replicated your described use cases by using a standalone list as the only view in XML:

    
    
    

    I fixed the problem to follow your desired use cases by nesting the layout in a parent layout:

    
    
        
        
    
    
    

提交回复
热议问题