[android-developers] Re: Saving fragment state in a view pager

2011-10-27 Thread Aleksey Malevaniy
The same issue. The only one solution I know: *override *destroyItem() call inside your FragmentPagerAdapter class so it has no super.destroyItem() call. E.g. public class DashboardPagerAdapter extends FragmentPagerAdapter{ ... // hack. we don't want to destroy our fragments and re-initiate

Re: [android-developers] Calling ListView.setSelection has no effect when called directly after adapter data was invalidated

2011-10-19 Thread Aleksey Malevaniy
OK, I've made it. But still can't understand why it works in this way: mMessageList.addAll(result); mMessageArrayAdapter.notifyDataSetChanged(); mMessageListView.clearFocus(); mMessageListView.post(new Runnable() {

Re: [android-developers] Calling ListView.setSelection has no effect when called directly after adapter data was invalidated

2011-10-19 Thread Aleksey Malevaniy
Please, could you or someone provide a sample of code? I'm facing the same problem and can't understand clearly how to avoid it. Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developer