Skip to content Skip to sidebar Skip to footer

How To Set Image Inside Of Donut-achartengine Graph?

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

Solution 1:

This could help..

<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>

Post a Comment for "How To Set Image Inside Of Donut-achartengine Graph?"