Hi droids, I wrote my own kind of progressbar as a custom view extending the View class. This bar I can alter with the ontouch event and draw a smooth gradient on the surface releated to the position of the finger. I have some get/set value public methods on it to set values programmatically too. The purpose is to have this control in a ListView together with a TextView in a lineairLayout fashion. I succeed in the creation of the list. But I call my setValue() in the getView() function of the adapter by inflation the first time and I noticed that my the getMeasuredHeigth() of my custom control equals zero. This is a bit annoying because my bar value (gradient) is calculated using this function as I can't know the exact measurements at compile time and I must bind my view with my model values the moment of creation of the list. As soon I scroll the screen the new (recycled views) are getting the proper value. So I suposse that getMeasuredHeigth() is called for the first time when the screen had been scrolled. This is kind a strange to me because I would expect that after the xml inflation the population of the measurement tree should also be done than.
Any ideas of what the calling order is for a custom view ? Do I have to use a dedicated factory (inflation) for a custom view ? Thanks Guy -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

