我正在以编程方式使用TextViews,我需要动态添加新View并在RelativeLayout父级中设置它们的左/上位置。我正在做的是这样的:RelativeLayoutglobal=(RelativeLayout)findViewById(R.id.global);TextViewview=(TextView)findViewById(R.id.root);RelativeLayout.LayoutParamslp=newRelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,ViewGroup.LayoutP