Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
private final Class<? extends FragmentActivity> activityClass;
我理解除了<? >部分之外的定义。
<? >
是否有某些理由将扩展名包含在该特殊文本中?
那是通配符,表示任何它可以采用任何类型extends FragmentActivity
extends
FragmentActivity
它是Java 泛型的一部分,这意味着 activityClass 的类型扩展了 FragmentActivity。