为什么SimpleCursorAdapter的支持库版本与框架版本不同?

时间:2014-05-09 06:36:00

标签: android android-support-library simplecursoradapter

我正在使用android.support.v4.widget.SimpleCursorAdapter,偶尔我会在其bindView方法中看到崩溃,一个典型示例是:

at android.support.v4.widget.SimpleCursorAdapter.bindView(SimpleCursorAdapter.java:135)
at android.support.v4.widget.CursorAdapter.getDropDownView(CursorAdapter.java:270)
at android.widget.Spinner$DropDownAdapter.getDropDownView(Spinner.java:741)
at android.widget.Spinner$DropDownAdapter.getView(Spinner.java:737)
at android.widget.Spinner.measureContentWidth(Spinner.java:685)
at android.widget.Spinner$DropdownPopup.show(Spinner.java:964)
at android.widget.ListPopupWindow$PopupDataSetObserver.onChanged(ListPopupWindow.java:1248)
at android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37)
at android.widget.BaseAdapter.notifyDataSetChanged(BaseAdapter.java:50)
at android.support.v4.widget.CursorAdapter.swapCursor(CursorAdapter.java:347)
at android.support.v4.widget.SimpleCursorAdapter.swapCursor(SimpleCursorAdapter.java:326)
at org.totschnig.myexpenses.activity.ExpenseEdit.onLoadFinished(ExpenseEdit.java:1189)

这似乎是https://code.google.com/p/android/issues/detail?id=8840的解决方案已经解决的问题,但是支持库的SimpleCursorAdapter版本中缺少此解决方案。我想知道这是否只是一个遗漏,或者支持库是否存在一些阻止此修复被应用的差异?

0 个答案:

没有答案