Re: [android-developers] ExpandableListView expand/collapse question

2011-11-02 Thread Kostya Vasilyev
You're not updating your data structure from a non-UI thread, are you? Other than that, make sure your getView never returns null - doing so will cause a crash inside obtainView: http://www.grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/widget/Ab

Re: [android-developers] ExpandableListView expand/collapse question

2011-11-01 Thread Ash
Hi Kostya, Thanks. That helped. The button clicks are definitely more responsive and I also avoid re-creating the view every second. I also have another issue related to ExpandableListView. Can you help? The issue is as follow: 1. I get a lot of information from a backend server (in the range o

Re: [android-developers] ExpandableListView expand/collapse question

2011-11-01 Thread Kostya Vasilyev
notityDataSetChanged rebuilds the view list, so yes, that could cause UI events to be missed. As far as updating an {Expandable}ListView in a more efficient way - if you just need to refresh a few UI widgets - this can be done by: - Asking the list view for the currently visible range of item

Re: [android-developers] ExpandableListView expand/collapse question

2011-11-01 Thread TreKing
On Tue, Nov 1, 2011 at 3:35 AM, Ash wrote: > Can you please advice if there is other way of displaying a timer on the > group view or the way I am currently doing it is acceptable? Seems like it should work - if not, not sure what to tell you. Haven't modified ExpandableListViews much. ---

Re: [android-developers] ExpandableListView expand/collapse question

2011-11-01 Thread Ash
The application that we are developing has 5 image buttons on the group view. Each image button is next to each other with some space between them. It is found that when we try to click on the image button the group view ends up expanding and it is not acceptable. Hence we have decided to decide

Re: [android-developers] ExpandableListView expand/collapse question

2011-10-31 Thread TreKing
On Mon, Oct 31, 2011 at 4:03 AM, Ash wrote: > I have modified the expandablelistview's ongroupclick to return true as I > would like my imagebutton to control the expanding/collapsing of the group. Why? ---

[android-developers] ExpandableListView expand/collapse question

2011-10-31 Thread Ash
Hi All, I have an imagebutton on the groupview of my expanlablelistview. I have modified the expandablelistview's ongroupclick to return true as I would like my imagebutton to control the expanding/collapsing of the group. My question is when I create the even handler for the imagebutton, how d