对 ArrayAdapter 的未选中调用
2022-09-01 02:18:55
当我实例化我的ArrayAdapter(编译正常)时,我收到以下警告:
warning: [unchecked] unchecked call to ArrayAdapter(android.content.Context,int,java.util.List<T>) as a member of the raw type android.widget.ArrayAdapter
ArrayAdapter spinnerArrayAdapter = new ArrayAdapter(CFAMain.this, android.R.layout.simple_spinner_dropdown_item, spinnerArray);
这是问题线:
ArrayAdapter spinnerArrayAdapter = new ArrayAdapter(CFAMain.this, android.R.layout.simple_spinner_dropdown_item, spinnerArray);
有人知道为什么它给我这个警告吗?