我有一个实时图表。我将它作为视图添加到 Linealayout。但是当应用程序运行时我看不到它。这是我的代码:
view = ChartFactory.getTimeChartView(this, dataset, renderer, "Live View");
view.refreshDrawableState();
view.repaint();
linearLayout = (LinearLayout) findViewById(R.id.LinearLayout1);
linearLayout.addView(view, 0, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));