I know this question has been asked before, like this:
But my issue is when I do this:
LayoutParams params = new LayoutParams(
LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT
);
params.setMargins(left, top, right, bottom);
It shows there's no setMargins for params. Who can help?
yourButton.setLayoutParams(params);
– Madancy