I was wondering if there is a difference between
LinearLayout.LayoutParams separatorParams = new LinearLayout.LayoutParams(
LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
TextView separator = new TextView(context);
separator.setLayoutParams(seperatorParams);
this.addView(separator);
Or
LinearLayout.LayoutParams separatorParams = new LinearLayout.LayoutParams(
LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
TextView separator = new TextView(context);
this.addView(separator,separatorParams);
According to the source code, it basically makes no difference since
addView(View view)callsaddView(view, view.getLayoutParams())