我想知道两者之间是否有区别
LinearLayout.LayoutParams separatorParams = new LinearLayout.LayoutParams(
LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
TextView separator = new TextView(context);
separator.setLayoutParams(seperatorParams);
this.addView(separator);
或者
LinearLayout.LayoutParams separatorParams = new LinearLayout.LayoutParams(
LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
TextView separator = new TextView(context);
this.addView(separator,separatorParams);