It's not a bug. There's no guarantee in the order of the calls wrt to the position value. It also depends on how the GridView is measured/laid out.
On Mon, Apr 27, 2009 at 6:38 AM, Illidane <illid...@gmail.com> wrote: > > Hi, > I'm using GridView in my app, and myAdapter ( extends BaseAdapter) for > it. I have overrited method getView(int position, View convertView, > ViewGroup parent) of Adapter and 100 cells in GridView. > > If I set logger: > android.util.Log.w("bla", (new StringBuilder()).append > (position).toString()); where is in the getView then I'll see that > position is changed like: 0, 0, 1, 2, 3... 99, 0. -WTF? ( thats for > the first time) and then I call mGameGrid.setAdapter(mAdapter) and > position is going: 0, 0, 1, 2, 3...99. > I think it's a bug of BaseAdapter, isn't it? > > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---