1

可能重复:
Android:我正在为图表使用 AChartEngine 库,但无法将 achartengine 的图表视图与 android xml 集成?

我是 ACHARTENGINE 的新手,想将它集成到我的布局中。

下面是我的 XML:

<FrameLayout
android:id="@+id/report_description"
android:layout_width="fill_parent" 
android:layout_height="300dip"
android:layout_gravity="top">

<LinearLayout android:id="@+id/chart" 
android:orientation="horizontal" 
android:layout_width="fill_parent" 
android:layout_height="wrap_content" 
android:layout_weight="1" />

</FrameLayout>

这是我的代码:

public class GraphScreen extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.graph);
}
}

你能帮我渲染任何图表 BAR、PIE 或 LINE

在此先感谢马兹

4

1 回答 1

1

您可以查看ACHARTENGINE 的好东西 并下载示例源。所以,这个问题在这里回答

于 2012-02-22T09:11:05.257 回答