android layout - How to set Height of linerlayout through java code -


In the xml file, I am using relative layout as a parent. In it I use linolereout for child How can I set the height of the linear layout? Thanks in advance

Try this code which will determine the height of the linear layout. RelativeLayout in case .. Hope this will work correctly ... LinearLayout linearLayout = (LinearLayout) findViewById (R.id.linearLayout0); Linear layout SetminimalMight (Minhite);

Comments