com.mikepenz.materialdrawer.Drawer.removeItem()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(146)

本文整理了Java中com.mikepenz.materialdrawer.Drawer.removeItem()方法的一些代码示例,展示了Drawer.removeItem()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Drawer.removeItem()方法的具体详情如下:
包路径:com.mikepenz.materialdrawer.Drawer
类名称:Drawer
方法名:removeItem

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());

相关文章