Set margins in a LinearLayout programmatically

Posted by Editorial Staff | Updated on

In this example, We have shared set margins in a LinearLayout programmatically. Java to create a LinearLayout with buttons that fill the screen with margins.

Here is a little code to accomplish it:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers