我已经创建了一个名为Graphview
的自定义视图。下面是GraphView类的结构。
public class GraphView extends View {
public GraphView(Context context, float[] values, String title, String[] horlabels, String[] verlabels, boolean type) {
super(context);
........
}
..................
.................
}
我已经使用addview()
将视图添加到了一个表格中。它工作得很好。现在我想设置GraphView
的高度和宽度。如何做到这一点?
https://stackoverflow.com/questions/5042197
复制相似问题