예제 #1
0
 public void initTopBarForBoth(
     String titleName,
     int rightDrawableId,
     HeaderLayout.onRightImageButtonClickListener listener) {
   mHeaderLayout = (HeaderLayout) findViewById(R.id.common_actionbar);
   mHeaderLayout.init(HeaderLayout.HeaderStyle.TITLE_DOUBLE_IMAGEBUTTON);
   mHeaderLayout.setTitleAndLeftImageButton(
       titleName,
       R.drawable.base_action_bar_back_bg_selector,
       (HeaderLayout.onLeftImageButtonClickListener) new OnLeftButtonClickListener());
   mHeaderLayout.setTitleAndRightImageButton(titleName, rightDrawableId, listener);
 }
예제 #2
0
 /**
  * ֻ��title initTopBarLayoutByTitle @Title: initTopBarLayoutByTitle
  *
  * @throws
  */
 public void initTopBarForOnlyTitle(String titleName) {
   mHeaderLayout = (HeaderLayout) findViewById(R.id.common_actionbar);
   mHeaderLayout.init(HeaderLayout.HeaderStyle.DEFAULT_TITLE);
   mHeaderLayout.setDefaultTitle(titleName);
 }