0
布局PARAMS设置TextView的,我相信你可以设置layout_width和layout_height动态使用类似TextView元素:Android的 - 以毫米为
LayoutParams lparams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.FILL_PARENT);
centimeterLayout.addView(textview, lparams);
可是 - 我怎么设置布局宽度和高度等单位 - 例如我想将我的文本视图的布局宽度设置为20毫米。我怎么做?