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

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

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

Drawer.getStickyFooterPosition介绍

[英]calculates the position of an drawerItem inside the footer. searching by it's identfier
[中]

代码示例

代码示例来源:origin: mikepenz/MaterialDrawer

/**
 * set the current selection in the footer of the drawer
 * NOTE: This will trigger onDrawerItemSelected without a view if you pass fireOnClick = true;
 *
 * @param identifier  the identifier to search for
 * @param fireOnClick true if the click listener should be called
 */
public void setStickyFooterSelection(long identifier, boolean fireOnClick) {
  setStickyFooterSelectionAtPosition(getStickyFooterPosition(identifier), fireOnClick);
}

代码示例来源:origin: mikepenz/MaterialDrawer

/**
 * calculates the position of an drawerItem. searching by it's identifier
 *
 * @param drawerItem
 * @return
 */
public int getStickyFooterPosition(@NonNull IDrawerItem drawerItem) {
  return getStickyFooterPosition(drawerItem.getIdentifier());
}

代码示例来源:origin: mikepenz/MaterialDrawer

/**
 * update a specific footerDrawerItem :D
 * automatically identified by it's id
 *
 * @param drawerItem
 */
public void updateStickyFooterItem(@NonNull IDrawerItem drawerItem) {
  updateStickyFooterItemAtPosition(drawerItem, getStickyFooterPosition(drawerItem));
}

代码示例来源:origin: FreedomZZQ/YouJoin-Android

/**
 * update a specific footerDrawerItem :D
 * automatically identified by it's id
 *
 * @param drawerItem
 */
public void updateStickyFooterItem(@NonNull IDrawerItem drawerItem) {
  updateStickyFooterItemAtPosition(drawerItem, getStickyFooterPosition(drawerItem));
}

代码示例来源:origin: FreedomZZQ/YouJoin-Android

/**
 * calculates the position of an drawerItem. searching by it's identifier
 *
 * @param drawerItem
 * @return
 */
public int getStickyFooterPosition(@NonNull IDrawerItem drawerItem) {
  return getStickyFooterPosition(drawerItem.getIdentifier());
}

代码示例来源:origin: FreedomZZQ/YouJoin-Android

/**
 * set the current selection in the footer of the drawer
 * NOTE: This will trigger onDrawerItemSelected without a view if you pass fireOnClick = true;
 *
 * @param identifier
 * @param fireOnClick
 */
public void setStickyFooterSelection(int identifier, boolean fireOnClick) {
  setStickyFooterSelectionAtPosition(getStickyFooterPosition(identifier), fireOnClick);
}

相关文章