Closed umeshkanhasoft closed 4 years ago
Hi @umeshkanhasoft I was able to change background color of my header using:
Inside onBindColumnHeaderViewHolder
try {
columnHeaderViewHolder.itemView.getBackground().setColorFilter(Color.parseColor(columnHeaderItemModel.getColor()), PorterDuff.Mode.DARKEN);
} catch (Exception e) {
e.printStackTrace();
}
thanks
@Override public void onBindCellViewHolder(@NonNull AbstractViewHolder holder, @Nullable Cell cellItemModel, int columnPosition, int rowPosition) { ((CellViewHolder) holder).cellData.setText(((Cell) cellItemModel).getData()); ((CellViewHolder) holder).setBackgroundColor(ContextCompat.getColor(context,R.color.colorAccent)); }