What Are The Default Values When You Don't Specify Height And Width For Elements Inside A Table Layout?
I noticed that when working with a table layout, you don't have to specify layout_width and layout_height for elements inside it.(doesn't bring up a compiler(not sure if its a com
Solution 1:
Your example is not just valid, it would ignore width and height.
"The children of a TableLayout cannot specify the layout_width attribute. Width is always MATCH_PARENT. However, the layout_height attribute can be defined by a child; default value is WRAP_CONTENT. If the child is a TableRow, then the height is always WRAP_CONTENT."
You really should look more often at this site http://developer.android.com/reference/android/widget/TableLayout.html
Post a Comment for "What Are The Default Values When You Don't Specify Height And Width For Elements Inside A Table Layout?"