本文整理了Java中com.mikepenz.materialdrawer.Drawer.removeItem()
方法的一些代码示例,展示了Drawer.removeItem()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Drawer.removeItem()
方法的具体详情如下:
包路径:com.mikepenz.materialdrawer.Drawer
类名称:Drawer
方法名:removeItem
[英]Remove a drawerItem by the identifier
[中]按标识符删除抽屉项
代码示例来源:origin: mikepenz/MaterialDrawer
/**
* remove a list of drawerItems by ther identifiers
*
* @param identifiers
*/
public void removeItems(long... identifiers) {
if (identifiers != null) {
for (long identifier : identifiers) {
removeItem(identifier);
}
}
}
代码示例来源:origin: k9mail/k-9
private void clearUserFolders() {
for (long drawerId : userFolderDrawerIds) {
drawer.removeItem(drawerId);
}
userFolderDrawerIds.clear();
}
代码示例来源:origin: FreedomZZQ/YouJoin-Android
/**
* remove a list of drawerItems by ther identifiers
*
* @param identifiers
*/
public void removeItems(int... identifiers) {
if (identifiers != null) {
for (int identifier : identifiers) {
removeItem(identifier);
}
}
}
代码示例来源:origin: Mavamaarten/vk_music_android
drawer.removeItem(item.getIdentifier());
内容来源于网络,如有侵权,请联系作者删除!