[android-developers] Re: GalleryView Bug???
Follow the tutorial you will get every thing working correctly http://developer.android.com/resources/tutorials/views/hello-gallery.html thanks -AnasSamara On Oct 1, 4:35 pm, Albert albert8...@googlemail.com wrote: Hi all, I have implemented a GalleryView using a custom BaseAdapter. The issue is that when the gallery reaches either end, the getView() calls the last/first item and right after calls the prev/next one, therefore it shows the wrong data. I understand why it needs to call its neighbour items but is it not supposed to call the position where you actually stopped as last? Thanks, Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: GalleryView Bug???
I have actually followed that tutorial. Look at this log: : getView 6 : getView 5 : getView 7 : getView 6 the gallery has stopped at the last item (7) but the getView bounces back to 6, so the data displayed is for item 6 instead of 7... Thanks, Alberto On Oct 1, 4:04 pm, AnasSamara anas86sam...@gmail.com wrote: Follow the tutorial you will get every thing working correctlyhttp://developer.android.com/resources/tutorials/views/hello-gallery thanks -AnasSamara On Oct 1, 4:35 pm, Albert albert8...@googlemail.com wrote: Hi all, I have implemented a GalleryView using a custom BaseAdapter. The issue is that when the gallery reaches either end, the getView() calls the last/first item and right after calls the prev/next one, therefore it shows the wrong data. I understand why it needs to call its neighbour items but is it not supposed to call the position where you actually stopped as last? Thanks, Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: GalleryView Bug???
Problem solved by implementing OnItemSelectedListener and avoiding getView() to update my views Thanks! Alberto On Oct 1, 4:30 pm, Albert albert8...@googlemail.com wrote: I have actually followed that tutorial. Look at this log: : getView 6 : getView 5 : getView 7 : getView 6 the gallery has stopped at the last item (7) but the getView bounces back to 6, so the data displayed is for item 6 instead of 7... Thanks, Alberto On Oct 1, 4:04 pm, AnasSamara anas86sam...@gmail.com wrote: Follow the tutorial you will get every thing working correctlyhttp://developer.android.com/resources/tutorials/views/hello-gallery thanks -AnasSamara On Oct 1, 4:35 pm, Albert albert8...@googlemail.com wrote: Hi all, I have implemented a GalleryView using a custom BaseAdapter. The issue is that when the gallery reaches either end, the getView() calls the last/first item and right after calls the prev/next one, therefore it shows the wrong data. I understand why it needs to call its neighbour items but is it not supposed to call the position where you actually stopped as last? Thanks, Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en