Good day! How to make the elements (in my case, the buttons) in the TableLayout container occupy the entire screen space. In width, I solved the problem through the use of the layout_weight property, but I cannot understand how tall it is. In the table layout, I have three TableRows, which in turn has four buttons.
1 answer
Can use GridLayout - this manager lays out components on a grid ...
http://developer.alexanderklimov.ru/android/layout/gridlayout.php
- Well, this is an option, but how to make it possible to stretch the elements on the whole screen? - Astar75
- I have never worked in the android, but I only read about this manager: http://www.skipy.ru/technics/layouts.html#grid - Artyom -.... .- ....-.-
- "layout_weight" can by analogy layout_height? - Artyom ... .- ....-.-
- Why answer if you do not know the answer ... weight - weight, not width - width - pavlofff
|