Re: [android-developers] Re: How to stop getCount() of ArrayAdapter for custom listview from being called automatically?

2012-04-18 Thread Narendra Singh Rathore
On Tue, Apr 17, 2012 at 2:59 PM, tomc_apadmi thom...@apadmi.com wrote: I believe getCount() is called as part of the adapter figuring out how it is going to be displayed. Perhaps clicking on editText is causing a softkeyboard to appear? This would change the dimensions of the screen and

Re: [android-developers] Re: How to stop getCount() of ArrayAdapter for custom listview from being called automatically?

2012-04-18 Thread Zsolt Vasvari
You need to make sure the getCount() call always returns something valid. Exactly. getCount() is part of the contract of the Adapter. Even if you could work around some issue you are having, you may still break on the next version of Android as they may decide to call getCount() at

Re: [android-developers] Re: How to stop getCount() of ArrayAdapter for custom listview from being called automatically?

2012-04-18 Thread Narendra Singh Rathore
On Thu, Apr 19, 2012 at 9:56 AM, Zsolt Vasvari zvasv...@gmail.com wrote: You need to make sure the getCount() call always returns something valid. Exactly. getCount() is part of the contract of the Adapter. Even if you could work around some issue you are having, you may still break on

[android-developers] Re: How to stop getCount() of ArrayAdapter for custom listview from being called automatically?

2012-04-17 Thread tomc_apadmi
I believe getCount() is called as part of the adapter figuring out how it is going to be displayed. Perhaps clicking on editText is causing a softkeyboard to appear? This would change the dimensions of the screen and cause your adapter to re calculate. You need to make sure the getCount()