如何甜甜圈achartEngine图的内部设置图像? [英] How to set Image inside of Donut-achartEngine Graph?

查看:158
本文介绍了如何甜甜圈achartEngine图的内部设置图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 aChartEngine 图书馆合作,将甜甜圈graph.But有问题,添加图像圆环图的内部。我可以只设置背景颜色,但没有得到能够设置背景图片圆环内。请检查图像。

I am using aChartEngineLibrary to make donut graph.But having problem to add image inside of donut Graph. I can set Background Color only , but not get able to set background image inside of donut. Please check image .

推荐答案

这可以帮助..

<RelativeLayout
   android:layout_width="match_parent"
   android:layout_height="170dp" >

   <LinearLayout
      android:id="@+id/left_graph_for_head_injury"   //here to draw donut
      android:layout_width="match_parent"
      android:layout_height="170dp" >
   </LinearLayout>

   <ImageView    //image to place
      android:layout_width="95dp"
      android:layout_height="95dp"
      android:layout_centerInParent="true"
      android:scaleType="fitXY"
      android:src="@drawable/inside_donut_head_injury_image" />
</RelativeLayout>

这篇关于如何甜甜圈achartEngine图的内部设置图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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