0
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(400, 400);
params.gravity = Gravity.TOP|Gravity.RIGHT;
linearLayout.setLayoutParams(params);

I am using this code but I want that I am using this code but I want that 400, replace with wrap_content.

I want to replace 400 to wrap_content using Java code

Robert
  • 7,394
  • 40
  • 45
  • 64

0 Answers0