Re: [android-developers] Re: Preserve ListView position when using footers

2011-01-20 Thread Kostya Vasilyev
20.01.2011 17:59, Kwisatz пишет: So, I did my (so far) most ugly hack EVER! I'm sincerely ashamed of this, and I will deny that this is my code, but... it gets the job done for now :P I'm not going to tell anyone :) BTW, have you thought about implementing header / footer rows right in your

[android-developers] Re: Preserve ListView position when using footers

2011-01-20 Thread Kwisatz
Thanks for the help, Kostya. The getScrollY() didn't work, but it got me started to find out a way that I could save the pixel offset of the top ListView row. And I got it. It's something like this: @Override protected void onPause() { super.onPause(); this.firstVisiblePos