json 抓map后还可以对mapdata进行干预 强行增加列
int i = DensityUtils.dp2px(getContext(), 25);
HttpBitmapDrawFormatX httpBitmapDrawFormatX = new HttpBitmapDrawFormatX(i, i, getBinding().tableview, "数据") {
@Override
protected String getUrl(Map map, Object o, String value, int position) {
Object id = map.get("id");
Object mid = map.get("mid");
Object name = map.get("name");
String url = String.format("%s/api/x/xxx/%s?id=%s&onlyCheck=%s&mid=%s",
GlobalSettingModel.getInstance().getUrl_webapi(), name, id, false, mid);
return url;
}
};
MapColumn<Object> columnPic = new MapColumn<>("数据", "数据");
columnPic.setDrawFormat(httpBitmapDrawFormatX);
param.getColumns().add(columnPic);
下面的代码为了优化 避免卡顿对bitmap的size进行了压缩。