public class TitleBar
extends Toolbar
Modifier and Type | Class and Description |
---|---|
static interface |
TitleBar.OnBackClickListener |
static interface |
TitleBar.OnRightIconClickListener |
Constructor and Description |
---|
TitleBar(android.content.Context context) |
TitleBar(android.content.Context context,
android.util.AttributeSet attrs) |
TitleBar(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
void |
dismissBackIcon() |
android.widget.TextView |
getLeftView() |
android.widget.TextView |
getMiddleView() |
android.widget.TextView |
getRightView() |
android.widget.ImageView |
getSearchView() |
android.widget.TextView |
getTypingView() |
void |
setLeftText(java.lang.CharSequence charSequence) |
void |
setOnBackClickListener(TitleBar.OnBackClickListener l) |
void |
setOnRightIconClickListener(TitleBar.OnRightIconClickListener l) |
void |
setRightIconDrawableVisibility(boolean visible) |
void |
setRightText(java.lang.CharSequence charSequence) |
void |
setRightTextColor(int color) |
void |
setRightVisible(boolean visible) |
void |
setSearchViewVisibility(boolean visibility) |
void |
setTitle(int resId) |
void |
setTitle(java.lang.String title) |
void |
setTyping(int typing) |
public TitleBar(android.content.Context context)
public TitleBar(android.content.Context context, android.util.AttributeSet attrs)
public TitleBar(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr)
public void setOnBackClickListener(TitleBar.OnBackClickListener l)
public void setOnRightIconClickListener(TitleBar.OnRightIconClickListener l)
public void setRightTextColor(int color)
public android.widget.TextView getLeftView()
public void setRightVisible(boolean visible)
public android.widget.TextView getMiddleView()
public android.widget.TextView getTypingView()
public void setTyping(int typing)
public android.widget.TextView getRightView()
public void setRightText(java.lang.CharSequence charSequence)
public void setLeftText(java.lang.CharSequence charSequence)
public void setTitle(java.lang.String title)
public void setTitle(int resId)
public void dismissBackIcon()
public void setRightIconDrawableVisibility(boolean visible)
public android.widget.ImageView getSearchView()
public void setSearchViewVisibility(boolean visibility)