老师我的layout为什么不能用match_parent,一用就报错
秋之朝
2014-10-02
1 回答
版本太低了要2.2才可以用match_parent,你只能用fill_parent
fill_parent -1 The view should be as big as its parent (minus padding). This constant is deprecated starting from API Level 8 and is replaced by match_parent.
match_parent -1 The view should be as big as its parent (minus padding). Introduced in API Level 8.
wrap_content -2 The view should be only big enough to enclose its content (plus padding).
从网上找了些资料贴上面了,看看是不是对你有帮助。
举报
0/150
提交
取消