【发布时间】:2019-08-25 20:29:24
【问题描述】:
我试过下面的代码
dTextView = new TextView(getContext());
dTextView.setText(item.getText());
dTextView.setTextSize(8);
dTextView.setTextColor(Color.BLACK);
dTextView.setLayoutParams(new RelativeLayout.LayoutParams((int) measureWidth, (int) measureHeight));
setMargin(dTextView, item);
rootView.addView(dTextView);
不过,这不是我想要的确切尺寸。 CheckBox 视图也同样如此。我需要用一个精确的精确位置和大小来绘制这个视图。
【问题讨论】: