MPAndroidChart-如何在像图形表这样的网格内添加单元格? [英] MPAndroidChart- How to add cells inside grids like Graph sheet?

查看:73
本文介绍了MPAndroidChart-如何在像图形表这样的网格内添加单元格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在MpAndroidchart库的网格内创建单元格? 样本图片: https://i.stack.imgur.com/9fNd2.png

How to create a cells inside grids in MpAndroidchart library? Sample Image: https://i.stack.imgur.com/9fNd2.png

推荐答案

我认为您最好的选择是更改图表的背景.由于图表默认情况下是透明的,因此,如果您设法像图像一样握住背景图片,则可以使用可绘制对象并更改图表的背景并对其进行修改.

I think your best bet is to change the background of the chart. Since the chart is transparent by default, if you manage to get hold of the background picture like in your image, you could use the drawable and change the chart's background and tinker around with it.

您可以将其用于图表:
在您的XML中:Java中的android:background="....."setBackgroundResource(.....).

You could use this for your chart:
In your XML : android:background="....." or setBackgroundResource(.....) in your java.

这篇关于MPAndroidChart-如何在像图形表这样的网格内添加单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆