Public 成员函数 | |
| AbTitleBar (Context context, AttributeSet attrs) | |
| AbTitleBar (Context context) | |
| void | ininTitleBar (Context context) |
| void | setTitleBarBackground (int res) |
| void | setTitleBarBackgroundDrawable (Drawable d) |
| void | setTitleBarBackgroundColor (int color) |
| void | setTitleTextMargin (int left, int top, int right, int bottom) |
| void | setTitleTextSize (int titleTextSize) |
| void | setTitleBarGravity (int gravity1, int gravity2) |
| Button | getTitleTextButton () |
| Button | getTitleSmallTextButton () |
| ImageView | getLogoView () |
| ImageView | getLogoView2 () |
| void | setTitleTextBold (boolean bold) |
| void | setTitleTextBackgroundResource (int resId) |
| void | setTitleTextBackgroundDrawable (Drawable drawable) |
| void | setTitleText (String text) |
| void | setTitleText (int resId) |
| void | setTitleSmallText (String text) |
| void | setTitleSmallText (int resId) |
| void | setLogo (Drawable drawable) |
| void | setLogo (int resId) |
| void | setLogo2 (Drawable drawable) |
| void | setLogo2 (int resId) |
| void | setLogoLine (int resId) |
| void | setLogoLine (Drawable drawable) |
| void | addRightView (View rightView) |
| void | addRightView (int resId) |
| void | clearRightView () |
| LinearLayout | getRightLayout () |
| void | setLogoOnClickListener (View.OnClickListener mOnClickListener) |
| void | setLogo2OnClickListener (View.OnClickListener mOnClickListener) |
| void | setTitleTextOnClickListener (View.OnClickListener mOnClickListener) |
| void | showWindow (View parent, View view, boolean offsetMode) |
| void | hideWindow () |
| void | setTitleTextDropDown (final View view) |
| LinearLayout | getTitleTextLayout () |
| void | setChildViewFillParent (boolean left) |
Public 属性 | |
| int | mAbTitleBarID = 1 |
| LayoutInflater | mInflater |
| LinearLayout.LayoutParams | layoutParamsFF = null |
| LinearLayout.LayoutParams | layoutParamsFW = null |
| LinearLayout.LayoutParams | layoutParamsWF = null |
| LinearLayout.LayoutParams | layoutParamsWW = null |
Protected 属性 | |
| LinearLayout | titleTextLayout = null |
| Button | titleTextBtn = null |
| Button | titleSmallTextBtn = null |
| ImageView | logoView = null |
| ImageView | logoView2 = null |
| ImageView | logoLineView = null |
| LinearLayout | rightLayout = null |
Private 属性 | |
| Activity | mActivity |
| LinearLayout.LayoutParams | titleTextLayoutParams = null |
| LinearLayout.LayoutParams | rightViewLayoutParams = null |
| PopupWindow | popupWindow |
© 2012 amsoft.cn 名称:AbBottomBar.java 描述:标题栏实现.
|
inline |
Instantiates a new ab title bar.
| context | the context |
| attrs | the attrs |
|
inline |
Instantiates a new ab title bar.
| context | the context |
|
inline |
描述:把指定的View填加到标题栏右边.
| rightView | 指定的View |
|
inline |
描述:把指定资源ID表示的View填加到标题栏右边.
| resId | 指定的View的资源ID |
|
inline |
描述:清除标题栏右边的View.
|
inline |
描述:获取标题Logo的View.
|
inline |
描述:获取标题Logo的View.
|
inline |
获取这个右边的布局,可用来设置位置.
|
inline |
描述:获取小标题文本的Button.
|
inline |
描述:获取标题文本的Button.
|
inline |
获取标题的全体布局.
|
inline |
描述:隐藏Window.
|
inline |
Inin title bar.
| context | the context |
|
inline |
获取子布局显示宽度比例 默认为标题填充,右边靠右.
| left | the new child view fill parent |
|
inline |
描述:设置Logo的背景图.
| drawable | Logo资源Drawable |
|
inline |
描述:设置Logo的背景资源.
| resId | Logo资源ID |
|
inline |
描述:设置Logo的背景图.
| drawable | Logo资源Drawable |
|
inline |
描述:设置Logo的背景资源.
| resId | Logo资源ID |
|
inline |
描述:设置Logo按钮的点击事件.
| mOnClickListener | 指定的返回事件 |
|
inline |
描述:设置Logo分隔线的背景资源.
| resId | Logo资源ID |
|
inline |
描述:设置Logo分隔线的背景图.
| drawable | Logo资源Drawable |
|
inline |
描述:设置Logo按钮的点击事件.
| mOnClickListener | 指定的返回事件 |
|
inline |
描述:标题栏的背景图.
| res | 背景图资源ID |
|
inline |
描述:标题栏的背景图.
| color | 背景颜色值 |
|
inline |
描述:设置标题背景.
| d | 背景图 |
|
inline |
描述:设置标题文字对齐方式 根据右边的具体情况判定方向: (1)中间靠近 Gravity.CENTER,Gravity.CENTER (2)左边居左 右边居右Gravity.LEFT,Gravity.RIGHT (3)左边居中,右边居右Gravity.CENTER,Gravity.RIGHT (4)左边居右,右边居右Gravity.RIGHT,Gravity.RIGHT 必须在addRightView(view)方法后设置
| gravity1 | 标题对齐方式 |
| gravity2 | 右边布局对齐方式 |
|
inline |
描述:设置小标题文本.
| text | 文本 |
|
inline |
描述:设置标题文本.
| resId | 文本的资源ID |
|
inline |
描述:设置标题文本.
| text | 文本 |
|
inline |
描述:设置标题文本.
| resId | 文本的资源ID |
|
inline |
描述:设置标题背景.
| drawable | the new title text background drawable |
|
inline |
描述:设置标题背景.
| resId | the new title text background resource |
|
inline |
描述:设置标题字体粗体.
| bold | the new title text bold |
|
inline |
描述:设置标题下拉的View.
| view | the new title text drop down |
|
inline |
描述:标题文字的对齐,需要在setTitleBarGravity之后设置才生效.
| left | the left |
| top | the top |
| right | the right |
| bottom | the bottom |
|
inline |
描述:设置标题的点击事件.
| mOnClickListener | 指定的返回事件 |
|
inline |
描述:标题文字字号.
| titleTextSize | 文字字号 |
|
inline |
描述:下拉菜单的的实现方法.
| parent | the parent |
| view | 要显示的View |
| offsetMode | 不填满的模式 |
| LinearLayout.LayoutParams com.ab.view.titlebar.AbTitleBar.layoutParamsFF = null |
LinearLayout.LayoutParams,已经初始化为FILL_PARENT, FILL_PARENT
| LinearLayout.LayoutParams com.ab.view.titlebar.AbTitleBar.layoutParamsFW = null |
LinearLayout.LayoutParams,已经初始化为FILL_PARENT, WRAP_CONTENT
| LinearLayout.LayoutParams com.ab.view.titlebar.AbTitleBar.layoutParamsWF = null |
LinearLayout.LayoutParams,已经初始化为WRAP_CONTENT, FILL_PARENT
| LinearLayout.LayoutParams com.ab.view.titlebar.AbTitleBar.layoutParamsWW = null |
LinearLayout.LayoutParams,已经初始化为WRAP_CONTENT, WRAP_CONTENT
|
protected |
左侧的Logo图标右边的分割线View.
|
protected |
左侧的Logo图标View.
|
protected |
左侧的Logo图标View.
| int com.ab.view.titlebar.AbTitleBar.mAbTitleBarID = 1 |
标题栏布局ID.
|
private |
The m context.
| LayoutInflater com.ab.view.titlebar.AbTitleBar.mInflater |
全局的LayoutInflater对象,已经完成初始化.
|
private |
下拉选择.
|
protected |
右边的View,可以自定义显示什么.
|
private |
右边布局的的对齐参数.
|
protected |
显示标题文字的小View.
|
protected |
显示标题文字的View.
|
protected |
标题布局.
|
private |
标题文本的对齐参数.
1.8.8