Created
October 16, 2016 20:39
-
-
Save fnk0/c04eca1565bd5ed319c6fdb5e28378f1 to your computer and use it in GitHub Desktop.
Change background color
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onBindRowViewHolder(RowPresenter.ViewHolder holder, Object item) { | |
super.onBindRowViewHolder(holder, item); | |
FullWidthDetailsOverviewRowPresenter.ViewHolder vh = (FullWidthDetailsOverviewRowPresenter.ViewHolder) holder; | |
View v = vh.getOverviewView(); | |
v.setBackgroundColor(getBackgroundColor()); | |
v.findViewById(android.support.v17.leanback.R.id.details_overview_actions_background) | |
.setBackgroundColor(getActionsBackgroundColor()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment