<T extends Drawable & DrawerToggle> ActionBarDrawerToggle(
Activity activity,
Toolbar toolbar,
DrawerLayout drawerLayout,
T slider,
@StringRes int openDrawerContentDescRes,
@StringRes int closeDrawerContentDescRes) {
在浏览ActionBarDrawerToggle.java类的源代码时,我发现这个构造函数是在没有访问说明符的情况下声明的。相反,它的声明以
<T extends Drawable & DrawerToggle>
请解释一下,这到底是什么意思?
https://stackoverflow.com/questions/35222769
复制相似问题