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

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

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

Drawer.setHeader介绍

[英]method to replace a previous set header
[中]方法替换以前的集合标头

代码示例

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

/**
 * method to replace a previous set header
 *
 * @param view
 * @param padding
 * @param divider
 */
public void setHeader(@NonNull View view, boolean padding, boolean divider) {
  setHeader(view, padding, divider, null);
}

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

/**
 * method to replace a previous set header
 *
 * @param view
 */
public void setHeader(@NonNull View view) {
  setHeader(view, true, true);
}

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

/**
 * method to replace a previous set header
 *
 * @param view
 * @param divider
 */
public void setHeader(@NonNull View view, boolean divider) {
  setHeader(view, true, divider);
}

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

mDrawer.setHeader(mAccountHeaderContainer, mPaddingBelowHeader, mDividerBelowHeader);

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

result.setHeader(headerResult.getView());
result.setHeader(headerResult.getView());

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

/**
 * method to replace a previous set header
 *
 * @param view
 */
public void setHeader(@NonNull View view) {
  setHeader(view, true, true);
}

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

/**
 * method to replace a previous set header
 *
 * @param view
 * @param divider
 */
public void setHeader(@NonNull View view, boolean divider) {
  setHeader(view, true, divider);
}

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

mDrawer.setHeader(mAccountHeaderContainer, mPaddingBelowHeader, mDividerBelowHeader);

相关文章