为了账号安全,请及时绑定邮箱和手机立即绑定

正在回答

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 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Android攻城狮的第一门课(入门篇)
  • 参与学习       312472    人
  • 解答问题       4931    个

想快速掌握Android应用开发基础,选择学习这门课程就对了。

进入课程
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号