Right, I didn't notice that. Thanks for pointing out, Romain! Until I downloaded the source code for the SDK I questioned that it made sense to make it public (both the method and the interface) if it's used only from within the package. Now that I can see how filters are used (basically adapters and filters are strongly related - and adapters play an important role in AutoCompleteTextViews) I think I have a better understanding about your decision.
Thanks for your help! On Jan 28, 11:24 pm, Romain Guy <[email protected]> wrote: > Because it comes from a public interface so it has to be public. > > > > On Wed, Jan 28, 2009 at 2:23 PM, Tote <[email protected]> wrote: > > > Hi, > > > Thanks for your answer! I was just confused seeing the scope of this > > method: why is it public if it's solely used inside a package? > > > Cheers, > > > Tote > > > On Jan 28, 10:05 pm, James Yum <[email protected]> wrote: > >> Hi, > >> onFilterComplete is a method of the FilterListener interface that is called > >> by the filter. It is not meant to be used by your app to listen for filter > >> competion. > > >> Cheers, > >> James > > >> On Wed, Jan 28, 2009 at 7:52 AM, Tote <[email protected]> wrote: > > >> > I'd like to get a notification when filtering is complete in my > >> > AutoCompleteTextView. The problem is that although onFilterComplete() > >> > method does exist, it doesn't have the corresponding setter method > >> > with which I could set my own listener for this event. How is that > >> > possible? Did I miss something? > > >> > My theoretical workaround, which I haven't tried yet, for the case if > >> > onFilterComplete() wouldn't work is that I set my own > >> > onItemClickedListener and onItemSelectedListener. But it's a bit > >> > laborous to implement two methods instead of one especially if that > >> > one method is exactly for the same purpose. Is it? > > >> > Can you help me? Thanks! > > -- > Romain Guy > Android framework engineer > [email protected] > > 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 Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

