Tricks of Android's GUI
Tricks of Android's GUI
1 layoutweight
In LinearLayout, the default weight for all views is 0, so if you specify any weight value greater than 0 to only one view, then that view fills whatever space remains after all views are given the space they require. It can be used in screen adaptation.

浙公网安备 33010602011771号