当前位置: 动力学知识库 > 问答 > 编程问答 >

android - setStackFromEnd(true) is shuffling the listitems

问题描述:

I'm using an adapterview. When I have .setStackFromEnd(true); in my code, it shuffles the list entries whenever something changes.

I just want to have items start from the bottom, but the bad looking shuffling animation isn't worth it.

Is this expected behaviour and how can I supress that animation ? (I think that it rebuilds the view, so everything is shortly shown at the bottom which looks like shuffling)

I have tried it without this line and it stops the shuffling. I also tried the attribute android:stackFromBottom="true" which showed no effect whatsoever.

I also have 2 different ViewTypes, so workarounds with unique viewtype-ids for every adapter-item aren't optimal aswell.

分享给朋友:
您可能感兴趣的文章:
随机阅读: