# TitleBar

public class TitleBar

头部Toolbar封装 Created by lhz on 18/3/22.

## Constructors

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

## Types

OnBackClickListener
Link copied to clipboard
public interface OnBackClickListener
OnRightIconClickListener
Link copied to clipboard
public interface OnRightIconClickListener

## Functions

dismissBackIcon
Link copied to clipboard
public void dismissBackIcon()
getLeftView
Link copied to clipboard
public TextView getLeftView()
getMiddleLeftIcon
Link copied to clipboard
public ImageView getMiddleLeftIcon()
getMiddleRightIcon
Link copied to clipboard
public ImageView getMiddleRightIcon()
getMiddleView
Link copied to clipboard
public TextView getMiddleView()
getRightView
Link copied to clipboard
public TextView getRightView()
getSearchView
Link copied to clipboard
public ImageView getSearchView()
getTypingView
Link copied to clipboard
public TextView getTypingView()
setLeftText
Link copied to clipboard
public void setLeftText(CharSequence charSequence)
setOnBackClickListener
Link copied to clipboard
public void setOnBackClickListener(TitleBar.OnBackClickListener l)
setOnRightIconClickListener
Link copied to clipboard
public void setOnRightIconClickListener(TitleBar.OnRightIconClickListener l)
setRightIcon
Link copied to clipboard
public void setRightIcon(int res)
setRightIconDrawableVisibility
Link copied to clipboard
public void setRightIconDrawableVisibility(boolean visible)
setRightText
Link copied to clipboard
public void setRightText(CharSequence charSequence)
setRightTextColor
Link copied to clipboard
public void setRightTextColor(int color)
setRightVisible
Link copied to clipboard
public void setRightVisible(boolean visible)
setSearchViewVisibility
Link copied to clipboard
public void setSearchViewVisibility(boolean visibility)
setTitle
Link copied to clipboard
public void setTitle(int resId)
public void setTitle(String title)
setTyping
Link copied to clipboard
public void setTyping(int typing)