【发布时间】:2015-01-14 14:47:16
【问题描述】:
我正在使用MPAndroidChart 库。
我在我的应用程序中实现了一个 PieChart。一切正常,但图表顶部和末尾有一个空白区域。 我需要删除这个空间才能正确可视化我的活动布局
我的问题是:
- 是否可以通过编程方式删除它们?
P.D.在我的布局中,没有 marginTop 或 marginBottom。
布局xml:
<com.github.mikephil.charting.charts.PieChart
android:id="@+id/pieChart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/_home_consumed" >
</com.github.mikephil.charting.charts.PieChart>
【问题讨论】: