重複の可能性:
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のチャートをレンダリングするのを手伝ってくれませんか
よろしくお願いします