我已经创建了一个名为Graphview
的自定义视图.以下是GraphView类的 struct .
public class GraphView extends View {
public GraphView(Context context, float[] values, String title, String[] horlabels, String[] verlabels, boolean type) {
super(context);
........
}
..................
.................
}
我使用addview()
在一个表格行中添加了视图.它运转良好.现在我想设置GraphView
的高度和宽度.怎么做?