Tricks of Android's GUI

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.

Author: mlhy

Created: 2015-10-18 Sun 04:58

Emacs 24.5.1 (Org mode 8.2.10)

posted @ 2015-10-17 12:58  mlhy  阅读(115)  评论(0编辑  收藏  举报