use of org.telegram.ui.Charts.view_data.ChartHeaderView in project Telegram-FOSS by Telegram-FOSS-Team.
the class MessageStatisticActivity method recolorRecyclerItem.
private void recolorRecyclerItem(View child) {
if (child instanceof ManageChatUserCell) {
((ManageChatUserCell) child).update(0);
} else if (child instanceof StatisticActivity.BaseChartCell) {
((StatisticActivity.BaseChartCell) child).recolor();
child.setBackgroundColor(Theme.getColor(Theme.key_windowBackgroundWhite));
} else if (child instanceof ShadowSectionCell) {
Drawable shadowDrawable = Theme.getThemedDrawable(ApplicationLoader.applicationContext, R.drawable.greydivider, Theme.key_windowBackgroundGrayShadow);
Drawable background = new ColorDrawable(Theme.getColor(Theme.key_windowBackgroundGray));
CombinedDrawable combinedDrawable = new CombinedDrawable(background, shadowDrawable, 0, 0);
combinedDrawable.setFullsize(true);
child.setBackground(combinedDrawable);
} else if (child instanceof ChartHeaderView) {
((ChartHeaderView) child).recolor();
} else if (child instanceof OverviewCell) {
((OverviewCell) child).updateColors();
child.setBackgroundColor(Theme.getColor(Theme.key_windowBackgroundWhite));
}
if (child instanceof EmptyCell) {
child.setBackgroundColor(Theme.getColor(Theme.key_windowBackgroundWhite));
}
}
Aggregations