# HeadComponent

public class HeadComponent

功能描述:

#### Author

haogaohui

#### Since

5.10.4

## Constructors

HeadComponent
Link copied to clipboard
public void HeadComponent(Context context)
public void HeadComponent(Context context, AttributeSet attrs)
public void HeadComponent(Context context, AttributeSet attrs, int defStyleAttr)

## Properties

leftTextView
Link copied to clipboard
public TextView leftTextView
rightTextView
Link copied to clipboard
public TextView rightTextView
titleTextView
Link copied to clipboard
public TextView titleTextView

## Functions

addRightView
Link copied to clipboard
public void addRightView(View view)
添加右边视图
getLeftTextView
Link copied to clipboard
public TextView getLeftTextView()
获取左边文字
getRightTextView
Link copied to clipboard
public TextView getRightTextView()
获取右边文字
getTitleTextView
Link copied to clipboard
public TextView getTitleTextView()
获取标题
setLeftClickListener
Link copied to clipboard
public void setLeftClickListener(OnClickListener listener)
设置左边点击事件
setLeftText
Link copied to clipboard
public void setLeftText(String text)
设置左边文字
setLeftTextDrawable
Link copied to clipboard
public void setLeftTextDrawable(int resId)
设置左边文字图标
setRightClickListener
Link copied to clipboard
public void setRightClickListener(OnClickListener listener)
设置右边点击事件
setRightText
Link copied to clipboard
public void setRightText(String text)
设置右边文字
setRightTextDrawable
Link copied to clipboard
public void setRightTextDrawable(int resId)
设置右边文字图标
setRightTextViewEnable
Link copied to clipboard
public void setRightTextViewEnable(boolean enable)
设置右边文字是否可用
setTitleClickListener
Link copied to clipboard
public void setTitleClickListener(OnClickListener listener)
设置标题点击事件
setTitleText
Link copied to clipboard
public void setTitleText(int id)
public void setTitleText(String title)
设置标题
setTitleTextDrawable
Link copied to clipboard
public void setTitleTextDrawable(int resId)
设置标题文字图标