What is the difference between using setLayoutParams and supplying the parameters to addView?
I understand that addView only works when adding the view for the first time. I found two ways of apparently doing the same thing:
tv.setLayoutParams(params);
layout.addView(tv)
vs
layout.addView(tv, params)
Are they equivalent?
If not what are the differences?