Java Code Examples for android.support.v17.leanback.widget.SearchOrbView#Colors

The following examples show how to use android.support.v17.leanback.widget.SearchOrbView#Colors . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VerticalGridSupportFragment.java    From adt-leanback-support with Apache License 2.0 5 votes vote down vote up
/**
 * Sets the {@link SearchOrbView.Colors} used to draw the search affordance.
 */
public void setSearchAffordanceColors(SearchOrbView.Colors colors) {
    mSearchAffordanceColors = colors;
    mSearchAffordanceColorSet = true;
    if (mTitleView != null) {
        mTitleView.setSearchAffordanceColors(mSearchAffordanceColors);
    }
}
 
Example 2
Source File: VerticalGridSupportFragment.java    From adt-leanback-support with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the {@link SearchOrbView.Colors} used to draw the search affordance.
 */
public SearchOrbView.Colors getSearchAffordanceColors() {
    if (mSearchAffordanceColorSet) {
        return mSearchAffordanceColors;
    }
    if (mTitleView == null) {
        throw new IllegalStateException("Fragment views not yet created");
    }
    return mTitleView.getSearchAffordanceColors();
}
 
Example 3
Source File: BrowseFragment.java    From adt-leanback-support with Apache License 2.0 5 votes vote down vote up
/**
 * Sets the {@link SearchOrbView.Colors} used to draw the search affordance.
 */
public void setSearchAffordanceColors(SearchOrbView.Colors colors) {
    mSearchAffordanceColors = colors;
    mSearchAffordanceColorSet = true;
    if (mTitleView != null) {
        mTitleView.setSearchAffordanceColors(mSearchAffordanceColors);
    }
}
 
Example 4
Source File: BrowseFragment.java    From adt-leanback-support with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the {@link SearchOrbView.Colors} used to draw the search affordance.
 */
public SearchOrbView.Colors getSearchAffordanceColors() {
    if (mSearchAffordanceColorSet) {
        return mSearchAffordanceColors;
    }
    if (mTitleView == null) {
        throw new IllegalStateException("Fragment views not yet created");
    }
    return mTitleView.getSearchAffordanceColors();
}
 
Example 5
Source File: BrowseSupportFragment.java    From adt-leanback-support with Apache License 2.0 5 votes vote down vote up
/**
 * Sets the {@link SearchOrbView.Colors} used to draw the search affordance.
 */
public void setSearchAffordanceColors(SearchOrbView.Colors colors) {
    mSearchAffordanceColors = colors;
    mSearchAffordanceColorSet = true;
    if (mTitleView != null) {
        mTitleView.setSearchAffordanceColors(mSearchAffordanceColors);
    }
}
 
Example 6
Source File: BrowseSupportFragment.java    From adt-leanback-support with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the {@link SearchOrbView.Colors} used to draw the search affordance.
 */
public SearchOrbView.Colors getSearchAffordanceColors() {
    if (mSearchAffordanceColorSet) {
        return mSearchAffordanceColors;
    }
    if (mTitleView == null) {
        throw new IllegalStateException("Fragment views not yet created");
    }
    return mTitleView.getSearchAffordanceColors();
}
 
Example 7
Source File: VerticalGridFragment.java    From adt-leanback-support with Apache License 2.0 5 votes vote down vote up
/**
 * Sets the {@link SearchOrbView.Colors} used to draw the search affordance.
 */
public void setSearchAffordanceColors(SearchOrbView.Colors colors) {
    mSearchAffordanceColors = colors;
    mSearchAffordanceColorSet = true;
    if (mTitleView != null) {
        mTitleView.setSearchAffordanceColors(mSearchAffordanceColors);
    }
}
 
Example 8
Source File: VerticalGridFragment.java    From adt-leanback-support with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the {@link SearchOrbView.Colors} used to draw the search affordance.
 */
public SearchOrbView.Colors getSearchAffordanceColors() {
    if (mSearchAffordanceColorSet) {
        return mSearchAffordanceColors;
    }
    if (mTitleView == null) {
        throw new IllegalStateException("Fragment views not yet created");
    }
    return mTitleView.getSearchAffordanceColors();
}