本文整理了Java中com.mikepenz.materialdrawer.Drawer.getStickyFooterPosition()
方法的一些代码示例,展示了Drawer.getStickyFooterPosition()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Drawer.getStickyFooterPosition()
方法的具体详情如下:
包路径:com.mikepenz.materialdrawer.Drawer
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!