没有数据时设置无数据样式
yebin254126 opened this issue · 1 comments
yebin254126 commented
我在drawContent中添加一下代码:
if (columns.size() == 0 || columns.get(0).getDatas().size() == 0) {
Paint paint = config.getPaint();
Rect rect = new Rect(showRect.left, showRect.top, showRect.right, showRect.bottom + 200);
DrawUtils.drawSingleText(canvas, paint, rect, "无数据");
}
用来设置无数据时的样式,但没有绘制出来