Methods Summary |
---|
public void | enableAnimation(boolean enable)Enables or disables any view animations.
mSearchOrbView.enableOrbColorAnimation(enable && mSearchOrbView.hasFocus());
|
public android.graphics.drawable.Drawable | getBadgeDrawable()Returns the badge drawable.
return mBadgeView.getDrawable();
|
public SearchOrbView.Colors | getSearchAffordanceColors()Returns the {@link SearchOrbView.Colors} used to draw the search affordance.
return mSearchOrbView.getOrbColors();
|
public android.view.View | getSearchAffordanceView()Returns the view for the search affordance.
return mSearchOrbView;
|
public java.lang.CharSequence | getTitle()Returns the title text.
return mTextView.getText();
|
public void | setBadgeDrawable(android.graphics.drawable.Drawable drawable)Sets the badge drawable.
If non-null, the drawable is displayed instead of the title text.
mBadgeView.setImageDrawable(drawable);
if (drawable != null) {
mBadgeView.setVisibility(View.VISIBLE);
mTextView.setVisibility(View.GONE);
} else {
mBadgeView.setVisibility(View.GONE);
mTextView.setVisibility(View.VISIBLE);
}
|
public void | setOnSearchClickedListener(View.OnClickListener listener)Sets the listener to be called when the search affordance is clicked.
mSearchOrbView.setOnOrbClickedListener(listener);
|
public void | setSearchAffordanceColors(SearchOrbView.Colors colors)Sets the {@link SearchOrbView.Colors} used to draw the search affordance.
mSearchOrbView.setOrbColors(colors);
|
public void | setTitle(java.lang.String titleText)Sets the title text.
mTextView.setText(titleText);
|