I don't know if this is a problem or not but in my opinion is strange. I have a class that I have named ListRow. This is a single element of my ListView. In my layout this is the initialization of LIstView:
mListView = (ListView)findViewById(R.id.mylist);
mAdapter = new BasicAdapter(this, mListResult);
mListView.setAdapter(mAdapter);
Then I have a method that add one element of ListRow in mListResult.
mListResult.add(myListRow);
I'm not in a loop. When I made a log, I saw 65 lines of:
position = 0; recycledView = android.widget.LinearLayout@42e14c00; parent = android.widget.ListView@4203bb80
That is the log that I put in getView() method:
Log.d("BasicAdapter","position = "+position+"; recycledView = "+recycledView+"; parent = "+parent);
Is it normal? If not, how can I fixed this problem?
0 comments:
Post a Comment