Android 我可以在图表的背景中放一张图片吗?
我正在使用MPAndroidChart 我想把一张图片放在图表的背景上,但我只知道改变背景颜色Android 我可以在图表的背景中放一张图片吗?,android,charts,mpandroidchart,Android,Charts,Mpandroidchart,我正在使用MPAndroidChart 我想把一张图片放在图表的背景上,但我只知道改变背景颜色 <com.github.mikephil.charting.charts.BarChart android:id="@+id/chart" android:layout_width="match_parent" android:layout_height="match_parent"/> 我使用的是v2.2.4jar文件 有人能帮我吗?试试这个: <c
<com.github.mikephil.charting.charts.BarChart
android:id="@+id/chart"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
我使用的是v2.2.4jar
文件
有人能帮我吗?试试这个:
<com.github.mikephil.charting.charts.BarChart
android:id="@+id/chart"
android:layout_width="match_parent"
android:background="@drawable/your_image"
android:layout_height="match_parent"/>
XAxis xl=barChart.getXAxis();xl.setTextColor(getResources().getColor(R.color.colorLineText));YAxis rightAxis=条形图。getAxisRight();setTextColor(getResources().getColor(R.color.colorLineText));事情马上就解决了。谢谢:-)!