📜  参数化类“ArrayAdapter”的原始使用 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:52.276000             🧑  作者: Mango

代码示例1
Use something like ArrayAdapter where "Type" is replaced with the actual type used by the ArrayAdapter.

For example:

ArrayAdapter

As the warning says, this is because ArrayAdapter is generic, so you should specify the type it refers to so that the compiler can check that everything is good at compile time.

You can read more here.