HeadComponent

public class HeadComponent

Header component for top navigation bar.

Since

5.10.4

Constructors

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

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

Functions

Link copied to clipboard
public void addRightView(View view)
Add a view to the right container
Link copied to clipboard
public TextView getLeftTextView()
Get the left text view
Link copied to clipboard
public TextView getRightTextView()
Get the right text view
Link copied to clipboard
public TextView getTitleTextView()
Get the title text view
Link copied to clipboard
public void setLeftClickListener(OnClickListener listener)
Set the left click listener
Link copied to clipboard
public void setLeftText(String text)
Set the left text
Link copied to clipboard
public void setLeftTextDrawable(int resId)
Set the left text drawable icon
Link copied to clipboard
public void setRightClickListener(OnClickListener listener)
Set the right click listener
Link copied to clipboard
public void setRightText(String text)
Set the right text
Link copied to clipboard
public void setRightTextDrawable(int resId)
Set the right text drawable icon
Link copied to clipboard
public void setRightTextViewEnable(boolean enable)
Set whether the right text view is enabled
Link copied to clipboard
public void setTitleClickListener(OnClickListener listener)
Set the title click listener
Link copied to clipboard
public void setTitleText(int id)

public void setTitleText(String title)
Set the title text
Link copied to clipboard
public void setTitleTextDrawable(int resId)
Set the title text drawable icon