In a written test to confuse the use of layoutparams, special to summarize:
Layoutparams inherits from Android.View.ViewGroup.LayoutParams.
Layoutparams is equivalent to a layout information package that encapsulates the location, height, and width of the layout. Suppose that an area on the screen is occupied by a layout, and if a view is added to a layout, it is best to tell the user how it is intended to be laid out, that is, to pass in an approved layoutparams.
Can describe Layoutparams, on the chess board, each piece occupies a position, that is, each piece has a position of information, such as this piece in 4 rows and 4 columns, where the "4 Rows 4 Columns" is the layoutparams of the pieces. But the Layoutparams class also simply describes the width of the height, width and height can be set to three kinds of values:
1, a definite value;
2,fill_parent, which is filled (as large as the parent container);
3,wrap_content, that is, wrapping the components is good.
Mtextview.setlayoutparams (New Framelayout.layoutparams (FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT));
Android Layout Properties Layoutparams understanding