草庐IT

MvxAutoCompleteTextView

全部标签

android - 选择项目后,PartialTextChanged 停止在 MvxAutoCompleteTextView 上触发

我在XamarinAndroidAutoCompleteTextView周围使用MVVMCross的包装器。我使用PartialTextChangedchanged事件来表示我需要从View调用ViewModel以获得更多建议。在用户从列表中选择一个项目之前,它工作正常。在那之后,对文本的任何更改都不会触发PartialTextChanged事件。就好像一旦做出选择就关闭了过滤。AutoCompleteTextView上有一个SetText方法似乎可以打开/关闭过滤,但我不确定使用它的最佳方法。TextChangedEvent仍然会像AfterTextChanged一样在控件上触发,只

android - MvxAutoCompleteTextView 停留在 'Wait starting for '

我尝试使用MvxAutoCompleteTextView但它在调试中卡住了以下输出:mvx:Diagnostic:3,57Waitstartingfor当我在模拟器(Android4.3,硬件键盘已禁用)中启动我的应用程序时,我看到了Waitstartingfor消息,并且在我键入时,没有显示任何建议。我的View模型:publicclassFirstViewModel:MvxViewModel{publicFirstViewModel(){ClearResults();}publicstring[]AutoCompleteSuggestions{get;set;}privatestr