AS 2.2 以后添加了一个新的布局特性,叫Constraint Layout (中文叫约束布局),今天在自己的ide上使用了后就觉得太好用了。这里记下使用方法。 使用constraint之前先要配置依赖包